You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Threading.Tasks; |
|
|
|
namespace AX.FireTrainingSys.DTOs |
|
{ |
|
/// <summary> |
|
/// 查询条件。 |
|
/// </summary> |
|
public class QueryOptions |
|
{ |
|
/// <summary> |
|
/// 分页页数。 |
|
/// </summary> |
|
public int? PageNumber { get; set; } |
|
/// <summary> |
|
/// 一页多少条。 |
|
/// </summary> |
|
public int? PageSize { get; set; } |
|
|
|
/// <summary> |
|
/// 排序选项。 |
|
/// </summary> |
|
public string Sort { get; set; } |
|
} |
|
|
|
/// <summary> |
|
/// 分页结果集。 |
|
/// </summary> |
|
/// <typeparam name="T"></typeparam> |
|
public class Page<T> |
|
{ |
|
/// <summary> |
|
/// 当前页。 |
|
/// </summary> |
|
public int PageNumber { get; set; } |
|
/// <summary> |
|
/// 每页个数。 |
|
/// </summary> |
|
public int PageSize { get; set; } |
|
/// <summary> |
|
/// 总页数。 |
|
/// </summary> |
|
public int TotalPages { get; set; } |
|
/// <summary> |
|
/// 总个数。 |
|
/// </summary> |
|
public int TotalCount { get; set; } |
|
/// <summary> |
|
/// 查询集合。 |
|
/// </summary> |
|
public IEnumerable<T> Items { get; set; } |
|
} |
|
}
|
|
|