/** * API 模块聚合入口 * * 统一导出所有 API 子模块的方法和类型,业务代码只需 * `import { login, getUserInfo } from '@/api'` 即可使用。 * * @module api */ // ── 用户模块 ── export { login, getUserInfo, logout, resetPassword, } from './user' export type { LoginParams, LoginResult, ResetPasswordParams, UserInfo, } from './user' // ── 通用模块 ── export { uploadFile, uploadFiles, getDictData, getDictDataByType, getCaptcha, getConfigValue, getConfigItem, } from './common' export type { UploadResult, DictItem, CaptchaResult, ConfigItem, } from './common' // ── HTTP 工具(便捷导出) ── export { getToken, setToken, removeToken } from '@/utils/http' export type { ApiResponse } from '@/utils/http'