feat(admin): Implement System Knowledge Base management module
Features:
- Backend: SystemKbService with full CRUD (knowledge bases + documents)
- Backend: 8 RESTful API endpoints (list/detail/create/update/delete/upload/download)
- Backend: OSS storage integration (system/knowledge-bases/{kbId}/{docId})
- Backend: RAG engine integration (document parsing, chunking, vectorization)
- Frontend: SystemKbListPage with card-based layout
- Frontend: SystemKbDetailPage with document management table
- Frontend: Master-Detail UX pattern for better user experience
- Document upload (single/batch), download (preserving original filename), delete
Technical:
- Database migration for system_knowledge_bases and system_kb_documents tables
- OSSAdapter.getSignedUrl with Content-Disposition for original filename
- Reuse RAG engine from common/rag for document processing
Tested: Local environment verified, all features working
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# ADMIN-运营管理端 - 模块当前状态与开发指南
|
||||
|
||||
> **最后更新:** 2026-01-25
|
||||
> **状态:** ✅ Phase 4.2 运营监控系统MVP完成!登录跳转逻辑优化完成!
|
||||
> **版本:** v0.6 (Alpha)
|
||||
> **最后更新:** 2026-01-27
|
||||
> **状态:** ✅ Phase 4.5 系统知识库管理功能完成!
|
||||
> **版本:** v0.7 (Alpha)
|
||||
|
||||
---
|
||||
|
||||
@@ -113,6 +113,16 @@
|
||||
- [x] 修复:PKB 工作区问答页面布局问题(CSS类名冲突)
|
||||
- [x] 修复:Protocol Agent 模块 CSS 类名重命名(.pa-chat-container)
|
||||
|
||||
**Phase 4.5:系统知识库管理** ✅ 已完成(2026-01-27)🎉
|
||||
- [x] 后端:SystemKbService 完整 CRUD(知识库+文档)
|
||||
- [x] 后端:8个 RESTful API 接口(列表/详情/创建/更新/删除/上传/下载)
|
||||
- [x] 后端:OSS 存储集成(system/knowledge-bases/{kbId}/{docId})
|
||||
- [x] 后端:RAG 引擎集成(文档解析、分块、向量化)
|
||||
- [x] 前端:SystemKbListPage 主页面(卡片式布局)
|
||||
- [x] 前端:SystemKbDetailPage 详情页(文档管理表格)
|
||||
- [x] 前端:主从页面模式(Master-Detail UX)
|
||||
- [x] 功能:文档上传(单个/批量)、下载(保留原始文件名)、删除
|
||||
|
||||
### ⏳ 待开发(按优先级)
|
||||
|
||||
**P2 - 用户管理增强(可选)**
|
||||
|
||||
Reference in New Issue
Block a user