| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据角色ID查询资源") |
| | | @ApiOperation(value = "根据角色ID查询图层") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | |
| | | |
| | | int count = roleLayerService.insert(entity); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | |
| | | int count = roleLayerService.inserts(list); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | try { |
| | | int count = roleLayerService.delete(id); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | |
| | | int count = roleLayerService.deletes(ids); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | |
| | | int count = roleLayerService.update(entity); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |
| | |
| | | |
| | | int count = roleLayerService.updates(list); |
| | | if (count > 0) { |
| | | permsService.clearLayerCache(); |
| | | permsService.clearPermsCache(); |
| | | } |
| | | |
| | | return success(count); |