feat:完成数据权限功能
This commit is contained in:
@@ -9,6 +9,5 @@ namespace Yi.Furion.Application.Rbac.Services
|
||||
public interface IDeptService : ICrudAppService<DeptGetOutputDto, DeptGetListOutputDto, long, DeptGetListInputVo, DeptCreateInputVo, DeptUpdateInputVo>
|
||||
{
|
||||
Task<List<long>> GetChildListAsync(long deptId);
|
||||
Task<List<DeptGetListOutputDto>> GetListRoleIdAsync([FromRoute] long roleId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Yi.Furion.Application.Rbac.Services.Impl
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
//[Route("{roleId}")]
|
||||
public async Task<List<DeptGetListOutputDto>> GetListRoleIdAsync([FromRoute] long roleId)
|
||||
public async Task<List<DeptGetListOutputDto>> GetRoleIdAsync([FromRoute] long roleId)
|
||||
{
|
||||
var entities = await _deptRepository.GetListRoleIdAsync(roleId);
|
||||
return await MapToGetListOutputDtosAsync(entities);
|
||||
|
||||
Reference in New Issue
Block a user