| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.LockInfMapper; |
| | | import com.whyc.pojo.db_area.LockInf; |
| | | import com.whyc.service.AreaInfService; |
| | | import com.whyc.service.LockInfService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @Api(tags = "锁具管理") |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "添加锁(批量)") |
| | | @GetMapping("addLock") |
| | | public Response addLock(@RequestParam(required = false) Integer areaId, @RequestParam String lockName, @RequestParam(required = false) Integer lockType, @RequestParam(required = false) Integer num){ |
| | | return service.addLock(areaId,lockName,lockType,num); |
| | | @PostMapping("addLock") |
| | | public Response addLock(@RequestParam(required = false) Integer num,@RequestBody LockInf lockInf){ |
| | | return service.addLock(num,lockInf); |
| | | } |
| | | @ApiOperation(value = "查询屏柜全部类型(下拉)") |
| | | @PostMapping("getScreenType") |
| | | public Response getScreenType(){ |
| | | return service.getScreenType(); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询屏柜全部品牌(下拉)") |
| | | @PostMapping("getScreenProduct") |
| | | public Response getScreenProduct(){ |
| | | return service.getScreenProduct(); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "删除锁") |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "修改锁") |
| | | @GetMapping("updateLock") |
| | | 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); |
| | | @PostMapping("updateLock") |
| | | public Response updateLock(@RequestBody LockInf lockInf){ |
| | | return service.updateLock(lockInf); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取区域下所有锁的状态(socket测试)") |