using System.Collections.Generic;
namespace Model.Base
{
///
/// 分页参数
///
public class PagedInfo
{
///
/// 每页行数
///
public int PageSize { get; set; } = 10;
///
/// 当前页
///
public int PageIndex { get; set; } = 1;
///
/// 总记录数
///
public int TotalNum { get; set; }
///
/// 总页数
///
public int TotalPage
{
get
{
if (TotalNum > 0)
{
return TotalNum % this.PageSize == 0 ? TotalNum / this.PageSize : TotalNum / this.PageSize + 1;
}
else
{
return 0;
}
}
set { }
}
public List Result { get; set; }
public Dictionary Extra { get; set; } = new Dictionary();
public PagedInfo()
{
}
}
}