namespace learun.util { /// /// 版 本 EasyCode EC管理后台 /// Copyright (c) 2019-present EC管理有限公司 /// 创建人:tobin /// 日 期:2019.09.09 /// 描 述:分页参数 /// public class Pagination { /// /// 每页行数 /// public int rows { get; set; } /// /// 当前页 /// public int page { get; set; } /// /// 排序列 /// public string sidx { get; set; } /// /// 排序类型 /// public string sord { get; set; } /// /// 总记录数 /// public int records { get; set; } /// /// 总页数 /// public int total { get { if (records > 0) { return records % this.rows == 0 ? records / this.rows : records / this.rows + 1; } else { return 0; } } } } }