
namespace Stat.Model
{
    /// <summary>
    /// 分页
    /// </summary>
    public class PageInfo
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public PageInfo()
        {
            this.PageIndex = 1;
            this.PageSize = 10;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pageSize"></param>
        public PageInfo(int pageSize)
        {
            this.PageIndex = 1;
            this.PageSize = pageSize;
        }

        /// <summary>
        /// 记录总数
        /// </summary>
        public int RecordCount { get; set; }

        /// <summary>
        /// 页码总数
        /// </summary>
        public int PageCount { get; set; }

        /// <summary>
        /// 页码大小
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 页码索引（当前页码）
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// Url参数组合
        /// </summary>
        public string UrlParam { get; set; }
        /// <summary>
        /// 排序方法（0：正，1：反）
        /// </summary>
        public int SortType { get; set; }
    }
}
