From 138943603ac70f25500d8daba79e58c302cbd817 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期一, 04 八月 2025 13:41:38 +0800 Subject: [PATCH] feat:角色开发 --- FlexJobApi.Core/Utils/PagedListUtils/PagedListQuery.cs | 27 ++++++++++++++++++++++----- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/FlexJobApi.Core/Utils/PagedListUtils/PagedListQuery.cs b/FlexJobApi.Core/Utils/PagedListUtils/PagedListQuery.cs index eaf9bfa..6ae8a7e 100644 --- a/FlexJobApi.Core/Utils/PagedListUtils/PagedListQuery.cs +++ b/FlexJobApi.Core/Utils/PagedListUtils/PagedListQuery.cs @@ -10,12 +10,17 @@ /// <summary> /// 鏌ヨ鍒嗛〉鍒楄〃 /// </summary> - /// <typeparam name="TCallback"></typeparam> + /// <typeparam name="TResult"></typeparam> /// <typeparam name="TItem"></typeparam> - public abstract class PagedListQuery<TCallback, TItem> - where TCallback : PagedListQueryResult<TItem>, new() + public abstract class PagedListQuery<TResult, TItem> + where TResult : PagedListQueryResult<TItem>, new() where TItem : class, new() { + protected PagedListQuery() + { + PageModel = new PagedListQueryPageModel(); + } + /// <summary> /// 鍒嗛〉淇℃伅 /// </summary> @@ -27,6 +32,13 @@ /// </summary> public class PagedListQueryPageModel { + public PagedListQueryPageModel() + { + Page = 1; + Rows = 40; + OrderInput = []; + } + /// <summary> /// 琛屾暟 /// </summary> @@ -38,9 +50,9 @@ public int Page { get; set; } /// <summary> - /// 鎬绘暟 + /// 鎺掑簭 /// </summary> - public int TotalCount { get; set; } + public List<PagedListQueryPageModelOrderInput> OrderInput { get; set; } } /// <summary> @@ -88,6 +100,11 @@ public class PagedListQueryResultPageModel : PagedListQueryPageModel { /// <summary> + /// 鎬绘暟 + /// </summary> + public int TotalCount { get; set; } + + /// <summary> /// 椤垫暟 /// </summary> public int TotalPage { get; set; } -- Gitblit v1.9.1