feat(image): 新建 knowai-core:1.0.0 镜像并完成推送
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
- 搭建 api、auth、utils 等逻辑模块 - 通过 tsc、eslint、vitest 测试验证 BREAKING CHANGE: 新镜像分支
This commit is contained in:
19
api/index.ts
Normal file
19
api/index.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// 导出API工厂函数和默认实例
|
||||
export { createApi, api } from './factory';
|
||||
|
||||
// 导出API类型和配置
|
||||
export {
|
||||
API_ENDPOINTS,
|
||||
ApiStatusCode,
|
||||
ApiErrorType,
|
||||
DEFAULT_REQUEST_CONFIG,
|
||||
DEFAULT_PAGINATION_CONFIG,
|
||||
type ApiClient,
|
||||
type ApiResponse,
|
||||
type PaginatedResponse,
|
||||
type ErrorResponse
|
||||
} from './types';
|
||||
|
||||
// 向后兼容的导出
|
||||
export { apiClient } from './client';
|
||||
export { postApi, userApi, chatApi, modelApi } from './modules';
|
||||
Reference in New Issue
Block a user