generated from wenjy/SlnMesnac
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.
24 lines
562 B
C#
24 lines
562 B
C#
using System.Collections.Generic;
|
|
|
|
namespace SlnMesnac.Model.domain
|
|
{
|
|
public class Page
|
|
{
|
|
public int PageIndex { get; set; }
|
|
public int PageSize { get; set; }
|
|
public int TotalCount { get; set; }
|
|
public int TotalPage { get; set; }
|
|
public List<object> Data { get; set; }
|
|
|
|
}
|
|
|
|
public class Page<T>:Page
|
|
{
|
|
public List<T> Data { get; set; }
|
|
|
|
/// <summary>
|
|
/// 判断有没有下一页
|
|
/// </summary>
|
|
public bool HasNext => TotalPage > PageIndex;
|
|
}
|
|
} |