feat(dept): 添加排除指定部门及其子孙部门的查询功能

This commit is contained in:
wcg
2026-01-04 10:29:10 +08:00
parent b69c6d86c1
commit 225d8d4726

View File

@@ -10,5 +10,13 @@ namespace Yi.Framework.Rbac.Application.Contracts.IServices
public interface IDeptService : IYiCrudAppService<DeptGetOutputDto, DeptGetListOutputDto, Guid, DeptGetListInputVo, DeptCreateInputVo, DeptUpdateInputVo> public interface IDeptService : IYiCrudAppService<DeptGetOutputDto, DeptGetListOutputDto, Guid, DeptGetListInputVo, DeptCreateInputVo, DeptUpdateInputVo>
{ {
Task<List<Guid>> GetChildListAsync(Guid deptId); Task<List<Guid>> GetChildListAsync(Guid deptId);
/// <summary>
/// 获取排除指定部门及其子孙部门的部门列表
/// </summary>
/// <param name="id">要排除的部门ID</param>
/// <returns>排除后的部门列表</returns>
Task<List<DeptGetListOutputDto>> GetListExcludeAsync(Guid id);
} }
} }