Files
XplorePlane/XP.Common/Database/Models/PaginationRequest.cs

29 lines
678 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}
}