sunpengfei
2025-08-04 7c7d0899d5cbf2de57238d845a6a7ef07603ff77
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; }