update Page and Response T
This commit is contained in:
@@ -53,7 +53,7 @@ export type CommentReplyView = {
|
||||
export type CommentPage = {
|
||||
bizType?: CommentBizType;
|
||||
bizId?: number;
|
||||
} & Page;
|
||||
} & Page<Comment>;
|
||||
|
||||
export enum CommentReplyBizType {
|
||||
|
||||
@@ -67,7 +67,7 @@ export enum CommentReplyBizType {
|
||||
export type CommentReplyPage = {
|
||||
bizType: CommentReplyBizType
|
||||
bizId?: number
|
||||
} & Page;
|
||||
} & Page<Comment>;
|
||||
|
||||
export enum CommentBizType {
|
||||
ARTICLE = "ARTICLE",
|
||||
|
||||
@@ -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