| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.Locks; |
| | | import com.doumee.service.business.DeviceService; |
| | | import com.doumee.service.business.LocksService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @Autowired |
| | | private LocksService locksService; |
| | | @Autowired |
| | | private DeviceService deviceService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | |
| | | public ApiResponse findById(@PathVariable String id) { |
| | | return ApiResponse.success(locksService.findById(id)); |
| | | } |
| | | |
| | | @ApiOperation("测试mqtt消息发送") |
| | | @PostMapping("/testMqtt") |
| | | public ApiResponse testMqtt(@RequestBody Locks locks) { |
| | | return ApiResponse.success(deviceService.openLock(locks)); |
| | | } |
| | | } |