接口文件
This commit is contained in:
40
Infrastructure/Hncore.Infrastructure/Data/PageData.cs
Normal file
40
Infrastructure/Hncore.Infrastructure/Data/PageData.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user