feat: 完成全量功能开发,包括前端管理后台与后端服务优化

此提交实现了完整的知识库管理系统:
1. 新增Vue3 + Antd Vue前端管理后台,包含登录、文档管理、检索、类目设置等完整页面
2. 重构后端LLM调用抽象层,支持Ollama与OpenAI兼容服务动态切换
3. 调整默认嵌入模型配置为本地bge-m3模式
4. 优化入库任务去重逻辑与缓存清理机制
5. 完善Docker镜像构建与docker-compose部署配置
6. 修复多项测试用例与兼容性问题
7. 新增运行时配置API,支持动态调整系统参数
This commit is contained in:
2026-07-31 12:05:25 +08:00
parent fdb664e546
commit 2ab8b56a01
52 changed files with 7030 additions and 171 deletions
+19
View File
@@ -0,0 +1,19 @@
import http from './client'
/**
* 用户名密码登录
* @param {string} username
* @param {string} password
* @returns {Promise<{access_token:string, expires_in:number, user:{username:string, role:string, created_at:string}}>}
*/
export function login(username, password) {
return http.post('/api/v1/auth/login', { username, password })
}
/**
* 获取当前登录用户信息
* @returns {Promise<{username:string, role:string, created_at:string}>}
*/
export function me() {
return http.get('/api/v1/auth/me')
}