// 基本实体模型 export type Model = { id?: string; createdAt?: number; updatedAt?: number; deletedAt?: number; } export type ApiResponse = { code: number; message: string; messageCode: string; success: boolean; fail: boolean; data: T; } export type Page = { orderMap?: { [K in keyof T]?: OrderType }; equalsExample?: Partial; likesExample?: Partial; } & BasePage; export type BasePage = { index: number; size: number; } export type OrderType = "ASC" | "DESC"; export type PageResult = { total: number; list: T[]; } // 携带验证码的请求体 export type CaptchaData = { captchaId: string; captcha: string; data: T; } // 图形验证码 export type CaptchaResult = { id: string; data: string; } export type ImageType = "IR-AUTO" | "IR-SMOOTH" | "IR-PIXELATED"; export type KeyValue = { key: K; value?: V; } export type LabelValue = { label: L; value?: V; }