xieb
2024-12-11 c0e0761eec99d3642b6a1acdcdb5e2b51a481aaf
skjcmanager/skjcmanager-service/skjcmanager-system/src/main/java/cn/gistack/system/controller/RoleController.java
@@ -116,6 +116,18 @@
   }
   /**
    * 根据父级角色查询子角色
    * @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")
@@ -158,6 +170,7 @@
   @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);