using MessagePack;

namespace GameMessage
{
    /// <summary>
    /// 分页的数据
    /// </summary>
    [MessagePackObject]
    public class DataPage
    {
        [IgnoreMember]
        public static DataPage Default => new DataPage { PageId = 1, PageSize = 20 };
        
        /// <summary>
        /// 第几页 (从1开始)
        /// </summary>
        [Key(0)]public int PageId = 1;
        
        /// <summary>
        /// 一页的数量
        /// </summary>
        [Key(1)]public int PageSize = 20;
    }
}