aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/http/common.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-11 22:59:41 +0800
committercrupest <crupest@outlook.com>2022-04-11 22:59:41 +0800
commit9c0cb8f8d3944c813ef28ff9f736f148fd701a66 (patch)
tree69842e08eaf6d16a055d464d46ba435a188c8d39 /FrontEnd/src/http/common.ts
parent65210138df643a475632690e2fb20401c1edbb95 (diff)
downloadtimeline-9c0cb8f8d3944c813ef28ff9f736f148fd701a66.tar.gz
timeline-9c0cb8f8d3944c813ef28ff9f736f148fd701a66.tar.bz2
timeline-9c0cb8f8d3944c813ef28ff9f736f148fd701a66.zip
...
Diffstat (limited to 'FrontEnd/src/http/common.ts')
-rw-r--r--FrontEnd/src/http/common.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/FrontEnd/src/http/common.ts b/FrontEnd/src/http/common.ts
index e1672985..0a27b908 100644
--- a/FrontEnd/src/http/common.ts
+++ b/FrontEnd/src/http/common.ts
@@ -212,3 +212,11 @@ export function convertToBlobWithEtag(res: AxiosResponse<Blob>): BlobWithEtag {
export function extractEtag(res: AxiosResponse): string {
return (res.headers as Record<"etag", string>)["etag"];
}
+
+export interface Page<T> {
+ pageNumber: number;
+ pageSize: number;
+ totalPageCount: number;
+ totalCount: number;
+ items: T[];
+}