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.
53 lines
1012 B
C#
53 lines
1012 B
C#
2 years ago
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Myshipping.Core;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 分页泛型集合
|
||
|
/// </summary>
|
||
|
/// <typeparam name="TEntity"></typeparam>
|
||
|
public class SqlSugarPagedList<TEntity>
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 页码
|
||
|
/// </summary>
|
||
|
public int PageIndex { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 页容量
|
||
|
/// </summary>
|
||
|
public int PageSize { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 总条数
|
||
|
/// </summary>
|
||
|
public int TotalCount { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 总页数
|
||
|
/// </summary>
|
||
|
public int TotalPages { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 当前页集合
|
||
|
/// </summary>
|
||
|
public IEnumerable<TEntity> Items { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 是否有上一页
|
||
|
/// </summary>
|
||
|
public bool HasPrevPages { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 是否有下一页
|
||
|
/// </summary>
|
||
|
public bool HasNextPages { get; set; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 分页集合
|
||
|
/// </summary>
|
||
|
public class PagedModel : SqlSugarPagedList<object>
|
||
|
{
|
||
|
}
|