/** * API 响应类型定义(与后端 DTO 对齐) */ // 通用 API 响应结构 export interface ApiResponse { code: number; message: string; data: T; } // 请求配置 export interface RequestConfig { url: string; method?: 'GET' | 'POST' | 'PUT' | 'DELETE'; data?: Record; headers?: Record; timeout?: number; } // API 错误 export interface ApiError { code: number; message: string; details?: Record; } // 股票搜索结果 export interface TickerSearchResult { symbol: string; name: string; exchange?: string; type?: string; } // ===== 认证相关 ===== export interface WechatLoginRequest { code: string; } export interface WechatLoginResponse { token: string; userId: string; }