xieb
2023-05-06 f22255579ddc213725b6bb5d27958628117f7262
skjcmanager/skjcmanager-service/skjcmanager-system/src/main/java/cn/gistack/system/controller/RoleController.java
@@ -59,7 +59,7 @@
@AllArgsConstructor
@RequestMapping("/role")
@Api(value = "角色", tags = "角色")
@PreAuth(RoleConstant.HAS_ROLE_ADMIN)
//@PreAuth(RoleConstant.HAS_ROLE_ADMIN)
public class RoleController extends BladeController {
   private final IRoleService roleService;
@@ -102,6 +102,14 @@
      return R.data(tree);
   }
   @GetMapping("/treeByParentId")
   @ApiOperationSupport(order = 3)
   @ApiOperation(value = "树形结构", notes = "树形结构")
   public R<List<RoleVO>> treeByParentId(String parentId) {
      List<RoleVO> tree = roleService.treeByParentId(parentId);
      return R.data(tree);
   }
   /**
    * 获取指定角色树形结构
    */