feat 搭建架构骨架

This commit is contained in:
Ironsp
2026-09-24 09:09:47 +08:00
parent dd9f6b77a4
commit 7a2efa3fea
180 changed files with 18967 additions and 9 deletions

31
src/types/api.d.ts vendored Normal file
View File

@@ -0,0 +1,31 @@
// 接口通用结构(PRD 4.8)
/** 业务类型(跨模块共享) */
export type BusinessType = 'internet' | 'hardware' | 'iot' | 'manufacturing' | 'other'
/** 统一响应结构 */
export interface ApiResponse<T> {
code: number
msg: string
data: T
}
/** 分页结果 */
export interface PageResult<T> {
list: T[]
total: number
}
/** 通用分页查询参数 */
export interface PageQuery {
page: number
pageSize: number
}
/** 附件/文件信息 */
export interface FileInfo {
name: string
size: number
uploadTime: string
url: string
}