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.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Admin.Core.Model
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通用分页信息类
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class PageQuery<T>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前页标
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Page { get; set; } = 1;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 每页大小
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PageSize { set; get; } = 10;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 时间范围
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<DateTime> DateRange { get; set; } = new List<DateTime>();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序字段
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string OrderBy { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序方式
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsAsc { set; get; } = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 查询条件
|
|
|
|
|
/// </summary>
|
|
|
|
|
public T Query { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|