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

namespace JiShe.CollectBus.Common.Models
{
    /// <summary>
    /// 查询结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BusPagedResult<T>
    {
        /// <summary>
        /// 总条数
        /// </summary>
        public long TotalCount { get; set; }

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

        /// <summary>
        /// 每页条数
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 数据集合
        /// </summary>
        public IEnumerable<T> Items { get; set; }

        /// <summary>
        /// 是否有下一页
        /// </summary>
        public bool HasNext { get; set; }

        /// <summary>
        /// 下一页的分页索引
        /// </summary>
        public decimal? NextScore { get; set; }

        /// <summary>
        /// 下一页的分页索引
        /// </summary>
        public string NextMember { get; set; }
    }
}
