feat: 归档渲染
This commit is contained in:
29
src/types/index.d.ts
vendored
Normal file
29
src/types/index.d.ts
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/** 基础 API 响应结构 */
|
||||
declare interface ApiResponse<T = unknown> {
|
||||
msg?: string
|
||||
data: T
|
||||
}
|
||||
|
||||
/** 分页响应结构 */
|
||||
declare interface ApiPageResponse<T = unknown> {
|
||||
msg?: string
|
||||
/** 当前页码 */
|
||||
page: number
|
||||
/** 每页数量 */
|
||||
pageSize: number
|
||||
/** 业务数据列表 */
|
||||
list: T[]
|
||||
/** 总记录数 */
|
||||
total: number
|
||||
}
|
||||
|
||||
/** 错误响应结构 - 当请求失败时的响应格式 */
|
||||
declare interface ApiErrorResponse {
|
||||
msg: string
|
||||
}
|
||||
|
||||
/** 通用请求参数类型 */
|
||||
declare interface Pagination {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
}
|
||||
Reference in New Issue
Block a user