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

namespace Common
{
    /// <summary>
    /// 请求服务端使用
    /// </summary>
    /// <typeparam name="T">可以是class也可以是ArrayList等</typeparam>
    public class CommonPage<T>
    {
        /// <summary>
        /// 对象
        /// </summary>
        public T param { get; set; }
        
        /// <summary>
        /// 对象集合
        /// </summary>
        public List<T> paramList { get; set; }

        /// <summary>
        /// arrayList对象集合
        /// </summary>
        public ArrayList paramArray { get; set; }

        /// <summary>
        /// 当前页
        /// </summary>
        public int pageNum { get; set; }

        /// <summary>
        /// 一页多少条数据
        /// </summary>
        public int pageSize { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string startTime { get; set; }
        
        /// <summary>
        /// 结束时间
        /// </summary>
        public string endTime { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string startTime2 { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string endTime2 { get; set; }

        /// <summary>
        /// string类型的参数1
        /// </summary>
        public string memo1 { get; set; }

        /// <summary>
        /// string类型的参数2
        /// </summary>
        public string memo2 { get; set; }

        /// <summary>
        /// string类型的参数3
        /// </summary>
        public string memo3 { get; set; }

        /// <summary>
        /// 排序字段+排序类型
        /// </summary>
        public string sortField { get; set; }
    }
}
