perf: 支持godaddy

This commit is contained in:
xiaojunnuo
2025-09-04 15:13:45 +08:00
parent e175729e2c
commit b7980aad5a
6 changed files with 192 additions and 4 deletions

View File

@@ -21,9 +21,9 @@ export type PageRes = {
export class Pager {
pageNo: number;
pageSize: number;
constructor(req: PageSearch) {
this.pageNo = req.pageNo ?? 1;
this.pageSize = req.pageSize || 50;
constructor(req?: PageSearch) {
this.pageNo = req?.pageNo ?? 1;
this.pageSize = req?.pageSize || 50;
}
getOffset() {