| | |
| | | return service.getAllKeyInf(keyName,uname,pageNum,pageSize); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有钥匙名信息(用于下拉)") |
| | | @GetMapping("getkinf") |
| | | public Response getkinf(){ |
| | | return service.getkinf(); |
| | | } |
| | | |
| | | @ApiOperation(value = "授权时查询所有钥匙信息(不分页)") |
| | | @GetMapping("getKeyInfAuth") |
| | | public Response getKeyInfAuth(){ |
| | | return service.getKeyInfAuth(); |
| | | } |
| | | |
| | | @ApiOperation(value = "添加钥匙") |
| | | @PostMapping("addKeyk") |
| | | public Response addKeyk(@RequestBody KeyInf kinf){ |
| | | return service.addKeyk(kinf); |
| | | @PostMapping("addKey") |
| | | public Response addKey(@RequestBody KeyInf kinf){ |
| | | return service.addKey(kinf); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "删除钥匙") |
| | | @GetMapping("delKey") |
| | | public Response delKey(@RequestParam Integer id){ |
| | | return service.delKey(id); |
| | | public Response delKey(@RequestParam Integer keyId){ |
| | | return service.delKey(keyId); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改钥匙") |
| | |
| | | public Response updateKey(@RequestBody KeyInf kinf){ |
| | | return service.updateKey(kinf); |
| | | } |
| | | |
| | | } |