| | |
| | | } |
| | | |
| | | /** |
| | | * 根据父级角色查询子角色 |
| | | * @param parentId |
| | | * @return |
| | | */ |
| | | @GetMapping("/treeByParentIdNew") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "树形结构", notes = "树形结构") |
| | | public R<List<RoleVO>> treeByParentIdNew(String parentId) { |
| | | List<RoleVO> tree = roleService.treeByParentIdNew(parentId); |
| | | return R.data(tree); |
| | | } |
| | | /** |
| | | * 获取指定角色树形结构 |
| | | */ |
| | | @GetMapping("/tree-by-id") |
| | |
| | | @PostMapping("/grant") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "权限设置", notes = "传入roleId集合以及menuId集合") |
| | | // @PreAuth(AuthConstant.HAS_ROLE_ADMIN) |
| | | public R grant(@RequestBody GrantVO grantVO) { |
| | | CacheUtil.clear(SYS_CACHE); |
| | | CacheUtil.clear(SYS_CACHE, Boolean.FALSE); |