43 lines
992 B
JavaScript
43 lines
992 B
JavaScript
|
|
/**
|
|||
|
|
* 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'),
|
|||
|
|
}
|
|||
|
|
|