This commit is contained in:
jack ning
2025-05-09 12:49:32 +08:00
parent 712608e9e1
commit b3252e7e08
2 changed files with 2 additions and 16 deletions

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-01-29 16:21:24
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-05-09 12:13:28
* @LastEditTime: 2025-05-09 12:49:01
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -137,20 +137,6 @@ public abstract class BaseRequest implements Serializable {
return PageRequest.of(pageNumber, pageSize, direction, sortBy);
}
/**
* 获取升序分页对象
* 按照sortBy字段升序排序
*
* @return Pageable 分页对象
*/
public Pageable getPageableAsc() {
// java.lang.IllegalArgumentException: Page size must not be less than one
if (pageSize < 1) {
pageSize = 10;
}
return PageRequest.of(pageNumber, pageSize, Sort.Direction.ASC, sortBy);
}
/**
* 验证请求参数
* 子类可以重写此方法添加自己的验证逻辑