mirror of https://gitee.com/stylefeng/roses
【8.3.3】【role】更新权限分配界面,左侧业务角色树的获取
parent
9a15a873ed
commit
4aa6205314
|
@ -8,6 +8,8 @@ import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
|
|||
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
|
||||
import cn.stylefeng.roses.kernel.sys.api.constants.PermissionCodeConstants;
|
||||
import cn.stylefeng.roses.kernel.sys.api.enums.role.RoleTypeEnum;
|
||||
import cn.stylefeng.roses.kernel.sys.api.pojo.role.SysRoleTreeDTO;
|
||||
import cn.stylefeng.roses.kernel.sys.api.pojo.role.request.RoleBindPermissionRequest;
|
||||
import cn.stylefeng.roses.kernel.sys.api.pojo.role.response.RoleBindDataScopeResponse;
|
||||
import cn.stylefeng.roses.kernel.sys.api.pojo.role.response.RoleBindPermissionResponse;
|
||||
|
@ -119,4 +121,17 @@ public class PermissionAssignController {
|
|||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 【2025年2月5日新增】获取所有业务角色分类和业务角色组成的树
|
||||
* <p>
|
||||
* 用在权限分配界面,左侧的角色列表
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @since 2025/2/5 15:53
|
||||
*/
|
||||
@GetResource(name = "获取角色分类和角色组成的树", path = "/permission/getRoleCategoryAndRoleTree")
|
||||
public ResponseData<List<SysRoleTreeDTO>> getRoleCategoryAndRoleTree() {
|
||||
return new SuccessResponseData<>(sysRoleService.roleCategoryAndRoleTreeList(RoleTypeEnum.BUSINESS_ROLE.getCode(), null));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue