using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CallCenterApi.Model
{
    /// <summary>
    /// 分页数据泛型类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PageData<T> where T : class, new()
    {
        /// <summary>
        /// 总记录数
        /// </summary>
        public int Total { get; set; }

        /// <summary>
        /// 当前页数据集合
        /// </summary>
        public List<T> Rows { get; set; }

        /// <summary>
        /// 页数
        /// </summary>
        public int Count { get; set; }

        public PageData()
        {
        }

        public PageData(int Total, int Count, List<T> Rows = null)
        {
            this.Total = Total;
            this.Count = Count;
            this.Rows = Rows;
        }
    }
}
