ZrAdminNetCore/ZR.Model/PagerInfo.cs

38 lines
951 B
C#
Raw 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.

namespace ZR.Model
{
public class PagerInfo
{
/// <summary>
/// 当前页码
/// </summary>
public int PageNum { get; set; }
/// <summary>
/// 每页显示多少条
/// </summary>
public int PageSize { get; set; }
/// <summary>
/// 总记录数
/// </summary>
public int TotalNum { get; set; }
/// <summary>
/// 排序字段
/// </summary>
public string Sort { get; set; } = string.Empty;
/// <summary>
/// 排序类型,前端传入的是"ascending""descending"
/// </summary>
public string SortType { get; set; } = string.Empty;
public PagerInfo()
{
PageNum = 1;
PageSize = 20;
}
public PagerInfo(int page = 1, int pageSize = 20)
{
PageNum = page;
PageSize = pageSize;
}
}
}