You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB
C#

1 year ago
namespace DS.Module.Core;
/// <summary>
/// 分页查询条件信息
/// </summary>
public class PageCondition
{
/// <summary>
/// 初始化一个 默认参数第1页每页20排序条件为空的分页查询条件信息类 的新实例
/// </summary>
public PageCondition()
: this(1, 20,false)
1 year ago
{
}
/// <summary>
/// 初始化一个 指定页索引与页大小的分页查询条件信息类 的新实例
/// </summary>
/// <param name="pageIndex"> 页索引 </param>
/// <param name="pageSize"> 页大小 </param>
/// <param name="isExport"></param>
public PageCondition(int pageIndex, int pageSize,bool isExport = false)
1 year ago
{
IsExport = isExport;
1 year ago
PageIndex = pageIndex;
PageSize = pageSize;
SortConditions = new SortCondition[] { };
}
/// <summary>
/// 是否导出
/// </summary>
public bool IsExport { get; set; } = false;
1 year ago
/// <summary>
/// 获取或设置 页索引
/// </summary>
public int PageIndex { get; set; }
/// <summary>
/// 获取或设置 页大小
/// </summary>
public int PageSize { get; set; }
/// <summary>
/// 获取或设置 排序条件组
/// </summary>
public SortCondition[] SortConditions { get; set; }
}