41 lines
846 B
C#
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; }
|
|
}
|
|
}
|