Sfoglia il codice sorgente

公共type类型定义

lfeish 1 anno fa
parent
commit
7da7a6be0a
2 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  1. 1 0
      src/types/common/constants.ts
  2. 14 0
      src/types/common/type.ts

+ 1 - 0
src/types/common/constants.ts

@@ -0,0 +1 @@
+export const DEFAULT_PAGE_SIZE = 10;

+ 14 - 0
src/types/common/type.ts

@@ -0,0 +1,14 @@
+export interface PaginationRequest {
+  pageNumber: number;
+  pageSize: number;
+}
+
+export interface PaginationResponse<T> {
+  pageNumber: number;
+  pageSize: number;
+  totalPage: number;
+  totalRow: number;
+  records: T[];
+}
+
+export type SUCCESS = 1;