/** * 纯函数工具统一导出 * * 使用方式: * import { formatAmount, formatDate, aesEncrypt } from '@/utils/functions' */ // 金额相关 export { formatAmount, formatCurrency, validateAmount } from "./amount"; // 日期处理 export * from "./date"; // 通用格式化 export { formatDistance, formatHumanReadableDate, convertSeconds, formatUnitPrice, validatePrice, } from "./format"; // ID生成 export { generateShortId } from "./generateShortId"; // 安全相关 - AES加密解密 export * from "./aes"; // 网络相关 - 参数构建、URL构建、文件上传 export * from "./buildParams"; export * from "./buildUrl"; export * from "./uploader"; // 数据存储 - 缓存处理 export * from "./cache"; // 用户相关 export * from "./user"; // 设备相关 - 电话、OCR export * from "./makePhone"; export * from "./ocr"; // 动画相关 export * from "./raf"; // 报告/日志 export * from "./reporter"; // 路由相关 export * from "./routeGuard";