namespace Coldairarrow.Util { /// <summary> /// 分页查询基类 /// </summary> public
class PageInput { private string _sortType { get; set; } = "asc"; /// <summary>
/// 当前页码 /// </summary> public int PageIndex { get; set; } = 1; /// <summary>
/// 每页行数 /// </summary> public int PageRows { get; set; } = int.MaxValue; ///
<summary> /// 排序列 /// </summary> public string SortField { get; set; } = "Id";
/// <summary> /// 排序类型 /// </summary> public string SortType { get => _sortType;
set => _sortType = (value ?? string.Empty).ToLower().Contains("desc") ? "desc" :
"asc"; } } }

技术
©2019-2020 Toolsou All rights reserved,
前端向后台传值的5种方式总结分页工具类PageResult mysql无备份恢复SpringMVC框架中在controller层获取自定义配置文件的属性值@Repository注解的作用org.postgresql.util.PSQLException 处理记录Golang数组平分,数组拆分,数组分组华为Mate 40 Pro+ 5G曝光:徕卡电影镜头、陶瓷机身Fiddler模拟请求发送和修改响应数据python 中的短路逻辑