| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RequestMapping("/role") |
| | |
| | | private RoleService roleService; |
| | | |
| | | private PowerService powerService; |
| | | @ValueClassify("角色管理") |
| | | |
| | | @ValueAuth |
| | | @ApiOperation(value = "获取角色列表枚举") |
| | | @GetMapping("/selectRoleList") |
| | | public Result selectRoleList(){ |
| | |
| | | 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 |