feat 部门数分页

This commit is contained in:
cheche
2024-02-20 11:07:04 +08:00
parent 28871aa450
commit 1f360c8005
4 changed files with 58 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
using Dlhis.Basic.Organization.Response;
using Dlhis.Basic.Organization.Request;
using Dlhis.Basic.Organization.Response;
using Dlhis.Basic.Organization.Services;
using Kurisu.AspNetCore.MVC;
using Kurisu.Core.DataAccess.Dto;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -31,4 +33,14 @@ public class DepartmentsController : ControllerBase
{
return await _departmentService.GetTreeAsync();
}
/// <summary>
/// 获取部门树分页
/// </summary>
/// <returns></returns>
[HttpGet("treepage")]
public async Task<Pagination<DepartmentTreeResponse>> GetTreePageAsync([FromQuery]DepartmentPageRequest request)
{
return await _departmentService.GetTreePageAsync(request);
}
}