Files
juipnet/Infrastructure/Hncore.Infrastructure/Data/PageData.cs

41 lines
806 B
C#
Raw Normal View History

2020-12-28 14:55:48 +08:00
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Hncore.Infrastructure.Data
{
public interface IPageData
{
/// <summary>
/// 总行数
/// </summary>
int RowCount { get; set; }
}
/// <summary>
/// 分页数据集合
/// </summary>
public class PageData<T>
{
public PageData()
{
List = new List<T>();
}
public PageData(int rowCount, List<T> data)
{
this.RowCount = rowCount;
this.List = data;
}
/// <summary>
/// 总行数
/// </summary>
public int RowCount { get; set; }
/// <summary>
/// 当前页数据集合
/// </summary>
public List<T> List { get; set; }
}
}