This commit is contained in:
2025-12-18 16:48:45 +08:00
parent b97f0da746
commit 41cbe2bd54
80 changed files with 5434 additions and 351 deletions

View File

@@ -22,6 +22,9 @@ public class PageDomain<T> implements Serializable {
* @since 2025-11-02
*/
private List<T> dataList;
public PageDomain() {
}
public PageDomain(PageParam pageParam, List<T> dataList) {
if (pageParam == null) {

View File

@@ -73,4 +73,11 @@ public class PageParam implements Serializable {
}
this.offset = (this.page - 1) * this.pageSize;
}
public void setTotal(int total){
this.total = total;
if (this.pageSize > 0) {
this.totalPages = (int) Math.ceil((double) total / pageSize);
}
}
}