update Page and Response T

This commit is contained in:
Timi
2025-12-25 15:43:47 +08:00
parent e20d2ea351
commit 05e354f148
4 changed files with 10 additions and 8 deletions

View File

@@ -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",

View File

@@ -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 {