whyclxw
2025-03-25 a7fef2846505b08e0711345b17902e7381612d23
src/main/java/com/whyc/controller/AuthiruzeInfController.java
@@ -21,9 +21,9 @@
    @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 = "添加授权(批量)")
@@ -39,9 +39,15 @@
        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 String mac,@RequestParam String uname){
        return service.getAuthByUidAndMac(mac,uname);
    }
}