Files
sionrui/frontend/app/web-gold/src/api/index.js

43 lines
992 B
JavaScript
Raw Normal View History

2025-11-11 23:51:17 +08:00
/**
* API 统一导出入口
* 所有 API 服务都从这里导出方便统一管理和使用
*/
// 配置
export { default as API_BASE, getApiUrl } from './config'
// HTTP 实例
export { default as http, default as request } from './http'
// 认证相关 API
export * from './auth'
// 聊天相关 API
export { ChatMessageApi } from './chat'
// 通用服务 API
export { CommonService } from './common'
export { default as CommonServiceDefault } from './common'
// TikHub API
export { TikhubService, default as TikhubServiceDefault } from './tikhub'
export { InterfaceType, MethodType, InterfaceUrlMap, ParamType } from './tikhub/types'
/**
* 统一导出所有 API 服务便于按需导入
*/
export default {
// 配置
config: () => import('./config'),
// HTTP 实例
http: () => import('./http'),
// API 服务
auth: () => import('./auth'),
chat: () => import('./chat'),
common: () => import('./common'),
tikhub: () => import('./tikhub'),
}