2023-05-04 18:20:18 +08:00
|
|
|
|
namespace ZR.Model
|
2021-08-23 16:57:25 +08:00
|
|
|
|
{
|
|
|
|
|
|
public class PagerInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 当前页码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int PageNum { get; set; }
|
2023-02-13 21:40:38 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 每页显示多少条
|
|
|
|
|
|
/// </summary>
|
2022-01-11 22:13:57 +08:00
|
|
|
|
public int PageSize { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 总记录数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int TotalNum { get; set; }
|
2022-01-11 22:13:57 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序字段
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Sort { get; set; } = string.Empty;
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序类型,前端传入的是"ascending","descending"
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string SortType { get; set; } = string.Empty;
|
2021-08-23 16:57:25 +08:00
|
|
|
|
public PagerInfo()
|
|
|
|
|
|
{
|
|
|
|
|
|
PageNum = 1;
|
|
|
|
|
|
PageSize = 20;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public PagerInfo(int page = 1, int pageSize = 20)
|
|
|
|
|
|
{
|
|
|
|
|
|
PageNum = page;
|
|
|
|
|
|
PageSize = pageSize;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|