update Page and Response T
This commit is contained in:
+5
-4
@@ -13,17 +13,18 @@ export type Model = {
|
||||
deletedAt?: number;
|
||||
}
|
||||
|
||||
export type Response = {
|
||||
export type Response<T> = {
|
||||
code: number;
|
||||
msg?: string;
|
||||
data: object;
|
||||
data: T;
|
||||
}
|
||||
|
||||
export type Page = {
|
||||
export type Page<T> = {
|
||||
index: number;
|
||||
size: number;
|
||||
orderMap?: { [key: string]: OrderType };
|
||||
likeMap?: { [key: string]: string | undefined | null };
|
||||
equalsExample?: T;
|
||||
likesExample?: T;
|
||||
}
|
||||
|
||||
export enum OrderType {
|
||||
|
||||
Reference in New Issue
Block a user