feat(role): 添加角色菜单和部门树获取功能

This commit is contained in:
wcg
2026-01-04 11:29:52 +08:00
parent 29f61e1dc9
commit 96503a2f15
2 changed files with 62 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Application.Services;
using Yi.Framework.Ddd.Application.Contracts;
using Yi.Framework.Rbac.Application.Contracts.Dtos.Role;
@@ -9,6 +10,18 @@ namespace Yi.Framework.Rbac.Application.Contracts.IServices
/// </summary>
public interface IRoleService : IYiCrudAppService<RoleGetOutputDto, RoleGetListOutputDto, Guid, RoleGetListInputVo, RoleCreateInputVo, RoleUpdateInputVo>
{
/// <summary>
/// 获取角色菜单树
/// </summary>
/// <param name="roleId">角色ID</param>
/// <returns>角色菜单树数据包含已选中的菜单ID和菜单树结构</returns>
Task<ActionResult> GetMenuTreeAsync(Guid roleId);
/// <summary>
/// 获取角色部门树
/// </summary>
/// <param name="roleId">角色ID</param>
/// <returns>角色部门树数据包含已选中的部门ID和部门树结构</returns>
Task<ActionResult> GetDeptTreeAsync(Guid roleId);
}
}