feat 部门数分页
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user