Files
juipnet/Infrastructure/Hncore.Infrastructure/Data/PageData.cs
wanyongkang d318014316 初始提交
2020-10-07 20:25:03 +08:00

41 lines
846 B
C#

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; }
}
}