| | |
| | | private RoleService roleService; |
| | | |
| | | private PowerService powerService; |
| | | @ValueClassify("角色管理") |
| | | @ValueAuth |
| | | @ApiOperation(value = "获取角色列表枚举") |
| | | @GetMapping("/selectRoleList") |
| | | public Result selectRoleList(){ |
| | | return Result.success(roleService.selectList()); |
| | | } |
| | | |
| | | @ValueClassify("角色管理") |
| | | @ValueAuth |
| | | @ApiOperation(value = "获取角色列表") |
| | | @PostMapping("/selectRoleLists") |
| | | public Result selectRoleLists(@RequestBody Map<String, Object> data) throws Exception { |
| | |
| | | public Result delRole(Integer id){ |
| | | return Result.success(roleService.delRole(id)); |
| | | } |
| | | @ValueClassify("角色管理") |
| | | @ValueAuth |
| | | @ApiOperation(value = "通过角色id查询权限列表") |
| | | @PostMapping("/selectPowerByRoleId") |
| | | public Result<?> selectPowerByRoleId(Integer id) { |
| | | return Result.success(powerService.selectPowerByRoleId(id)); |
| | | } |
| | | @ValueClassify("角色管理") |
| | | |
| | | @ApiOperation(value = "获取菜单") |
| | | @GetMapping("/selectMenuList") |
| | | @ValueAuth |