| | |
| | | return service.getAllLockInf(lockName,lockType,lockState,pageNum,pageSize); |
| | | } |
| | | |
| | | @ApiOperation(value = "授权时查询所有锁信息(不分页)") |
| | | @GetMapping("getLockInfAuth") |
| | | public Response getLockInfAuth(){ |
| | | return service.getLockInfAuth(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "添加锁(批量)") |
| | | @GetMapping("addLock") |
| | | public Response addLock(@RequestParam(required = false) Integer areaId, @RequestParam String lockName, @RequestParam(required = false) String lockType, @RequestParam(required = false) Integer num){ |
| | |
| | | |
| | | @ApiOperation(value = "删除锁") |
| | | @GetMapping("delLock") |
| | | public Response delLock(@RequestParam Integer id){ |
| | | return service.delLock(id); |
| | | public Response delLock(@RequestParam Integer lockId){ |
| | | return service.delLock(lockId); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改锁") |
| | | @GetMapping("updateLock") |
| | | public Response updateLock(@RequestParam(required = false) Integer areaId,@RequestParam Integer id, @RequestParam String lockName, @RequestParam(required = false) String lockType){ |
| | | return service.updateLock(id,areaId,lockName,lockType); |
| | | public Response updateLock(@RequestParam(required = false) Integer areaId,@RequestParam Integer lockId, @RequestParam String lockName, @RequestParam(required = false) String lockType){ |
| | | return service.updateLock(lockId,areaId,lockName,lockType); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取区域下所有锁的状态(socket测试)") |
| | | @GetMapping("getLockRt") |
| | | public Response getLockRt(@RequestParam Integer areaId){ |
| | | return service.getLockRt(areaId); |
| | | } |
| | | } |