using System.Collections.Generic; namespace Ropin.Inspection.Model { public class PagesModel { public PagesModel(IEnumerable items, BaseSearchModel searchModel) { IsPagination = searchModel.IsPagination; PageIndex = searchModel.PageIndex; PageSize = searchModel.PageSize; RecordCount = searchModel.TotalCount; Items = items; } public bool IsPagination { get; set; } = true; //是否分页 public int PageIndex { get; set; } = 1; //页码 public int PageSize { get; set; } = 10; //每页10行 public int RecordCount { get; set; } = 0; //总行数 public IEnumerable Items { get; set; } } }