feat(pkb): Complete PKB module frontend migration with V3 design

Summary:
- Implement PKB Dashboard and Workspace pages based on V3 prototype
- Add single-layer header with integrated Tab navigation
- Implement 3 work modes: Full Text, Deep Read, Batch Processing
- Integrate Ant Design X Chat component for AI conversations
- Create BatchModeComplete with template selection and document processing
- Add compact work mode selector with dropdown design

Backend:
- Migrate PKB controllers and services to /modules/pkb structure
- Register v2 API routes at /api/v2/pkb/knowledge
- Maintain dual API routes for backward compatibility

Technical details:
- Use Zustand for state management
- Handle SSE streaming responses for AI chat
- Support document selection for Deep Read mode
- Implement batch processing with progress tracking

Known issues:
- Batch processing API integration pending
- Knowledge assets page navigation needs optimization

Status: Frontend functional, pending refinement
This commit is contained in:
2026-01-06 22:15:42 +08:00
parent b31255031e
commit 5a17d096a7
226 changed files with 14899 additions and 224 deletions

View File

@@ -0,0 +1,44 @@
# ⚠️ 重要:需要重启服务器
## 修改内容
- ✅ 添加XML格式支持
- ✅ 更新消息处理逻辑
- ✅ 添加XML内容解析器
## 重启步骤
1. **停止当前服务器**
```
按 Ctrl+C在运行服务器的终端中
```
2. **重新启动服务器**
```powershell
cd D:\MyCursor\AIclinicalresearch\backend
npm run dev
```
3. **确认日志**
应该看到:
```
✅ 微信服务号回调控制器已初始化(明文模式)
Registered route: GET /wechat/patient/callback-plain (明文模式)
Registered route: POST /wechat/patient/callback-plain (明文模式, XML)
```
## 微信公众平台配置
| 配置项 | 值 |
|--------|-----|
| **URL** | `https://devlocal.xunzhengyixue.com/wechat/patient/callback-plain` |
| **Token** | `IitPatientWechat2026JanToken` |
| **消息加解密方式** | **明文模式** |
| **数据格式** | **XML** ⚠️ 必须选择XML |
---
**重启服务器后,即可在微信公众平台提交配置!**