ForcePilot/web/src/apis/index.js

37 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* API模块索引文件
* 导出所有API模块方便统一引入
*/
// 导出API模块
export * from './system_api' // 系统管理API
export * from './knowledge_api' // 知识库管理API
export * from './auth_api' // 认证API
export * from './graph_api' // 图谱API
export * from './tools.js' // 工具API
// 导出基础工具函数
export { apiRequest, apiGet, apiPost, apiPut, apiDelete } from './base'
/**
* API模块说明:
*
* 1. system_api.js: 系统管理API
* - 健康检查、配置管理、信息管理、OCR服务
* - 权限要求: 部分公开,部分需要管理员权限
*
* 2. knowledge_api.js: 知识库管理API
* - 数据库管理、文档管理、查询接口、文件管理
* - 权限要求: 管理员权限
*
* 3. auth_api.js: 认证API
* - 用户认证、用户管理
*
* 4. graph_api.js: 图谱API
* - 知识图谱相关功能
*
* 5. tools.js: 工具API
* - 工具信息获取
*
* 注意API模块已处理权限验证和请求头使用时无需再手动添加认证头
*/