Files
juipnet/Infrastructure/Hncore.Infrastructure/Data/PageData.cs
“wanyongkang” ed3b2c653e 接口文件
2024-04-10 13:55:27 +08:00

41 lines
806 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; }
}
}