| | |
| | | |
| | | @ApiOperation(value = "查询所有授权信息") |
| | | @GetMapping("getAllAuthInf") |
| | | public Response getAllAuthInf(@RequestParam(required = false) Integer state, @RequestParam(required = false) String uname |
| | | public Response getAllAuthInf( @RequestParam(required = false) String uname |
| | | ,@RequestParam int areaId , int pageNum, int pageSize){ |
| | | return service.getAllAuthInf(state,uname,areaId,pageNum,pageSize); |
| | | return service.getAllAuthInf(uname,areaId,pageNum,pageSize); |
| | | } |
| | | |
| | | @ApiOperation(value = "添加授权(批量)") |
| | |
| | | return service.delAuth(ids); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改授权") |
| | | @ApiOperation(value = "修改授权(批量)") |
| | | @PostMapping("updateAuth") |
| | | public Response updateAuth(@RequestBody AuthiruzeInf auth){ |
| | | return service.updateAuth(auth); |
| | | public Response updateAuth(@RequestBody AuthiruzeInf auth,@RequestParam int id){ |
| | | return service.updateAuth(auth,id); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据mac检测蓝牙锁是否有权限") |
| | | @GetMapping("getAuthByUidAndMac") |
| | | public Response getAuthByUidAndMac(@RequestParam Integer mac){ |
| | | return service.getAuthByUidAndMac(mac); |
| | | public Response getAuthByUidAndMac(@RequestParam String mac,@RequestParam String uname){ |
| | | return service.getAuthByUidAndMac(mac,uname); |
| | | } |
| | | } |