29 lines
681 B
C#
29 lines
681 B
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace XP.Common.Database.Models
|
||
{
|
||
/// <summary>
|
||
/// 通用分页请求模型
|
||
/// </summary>
|
||
public class PaginationRequest
|
||
{
|
||
/// <summary>
|
||
/// 页码(从1开始)
|
||
/// </summary>
|
||
public int PageIndex { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 每页条数
|
||
/// </summary>
|
||
public int PageSize { get; set; } = 20;
|
||
|
||
/// <summary>
|
||
/// 排序字段(如:CreateTime DESC)
|
||
/// </summary>
|
||
public string OrderBy { get; set; } = string.Empty;
|
||
}
|
||
} |