feat(backend): 数字员工平台 B1+B2 批次实现

B1: 项目脚手架 + 数据模型 + 租户管理
- Task 1.1: FastAPI 项目脚手架、SQLite + async SQLAlchemy
- Task 1.2: 7 个数据模型 (Tenant, TenantConfig, DigitalEmployee, Conversation, Message, KnowledgeBase, Document)
- Task 1.3: 租户 CRUD API + LLM 配置(含 API Key AES 加密)

B2: 数字员工配置 + LLM Provider 抽象层
- Task 2.1: 数字员工 CRUD API(关联知识库)
- Task 2.2: BaseLLMProvider 抽象接口 + OpenAI/Qwen Provider
- Task 2.3: Provider 动态实例化 + test-provider 端点

验证: 26 个测试全部通过

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 4.7 committed 2026-05-06 11:29:48 +08:00
1 parent 44c37420af
commit c62156af53
37 files changed
+4419 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# 2026-05-06
## 纪要
- 工作区已初始化,可在此持续记录当天上下文。
## 进展
### B1 批次完成:项目脚手架 + 数据模型 + 租户管理
- ✅ Task 1.1 项目脚手架
- ✅ Task 1.2 数据模型(7个模型)
- ✅ Task 1.3 租户管理 API(7个测试全部通过)
- 实现:schemas/tenant.py, api/deps.py, services/tenant_service.py, api/v1/tenants.py
- 修复:conftest.py fixture 顺序和 get_db 依赖覆盖
### 下一步
- B2 批次:数字员工配置 + LLM Provider 抽象层