diff --git a/.kiro/specs/architecture-evolution/design.md b/.kiro/specs/architecture-evolution/design.md deleted file mode 100644 index e69de29..0000000 diff --git a/.kiro/specs/architecture-evolution/tasks.md b/.kiro/specs/architecture-evolution/tasks.md index 6a5243a..653ec02 100644 --- a/.kiro/specs/architecture-evolution/tasks.md +++ b/.kiro/specs/architecture-evolution/tasks.md @@ -6,8 +6,8 @@ ## Tasks -- [ ] 1. 引入 Repository 层,分离数据访问逻辑 - - [ ] 1.1 创建 `src/repositories/` 目录,为核心模型创建 Repository 类 +- [-] 1. 引入 Repository 层,分离数据访问逻辑 + - [x] 1.1 创建 `src/repositories/` 目录,为核心模型创建 Repository 类 - WorkOrderRepository: 封装工单的 CRUD + 按 tenant_id 过滤 - KnowledgeRepository: 封装知识库的 CRUD + 按 tenant_id 过滤 - ConversationRepository: 封装对话/会话的 CRUD + 按 tenant_id 过滤 @@ -17,7 +17,7 @@ - knowledge.py 的 get_knowledge、add_knowledge、delete_knowledge - conversations.py 的所有端点 - alerts.py 的所有端点 - - [ ] 1.3 在 Repository 基类中统一添加 tenant_id 过滤 + - [x] 1.3 在 Repository 基类中统一添加 tenant_id 过滤 - 所有查询方法自动附加 tenant_id 条件 - 写操作自动设置 tenant_id @@ -73,12 +73,12 @@ - 模块间通过事件通信,不直接读写共享状态 - [ ] 9.2 将 this.xxxCurrentTenantId 等状态封装为 Store 对象 -- [ ] 10. 清理旧代码 - - [ ] 10.1 删除 src/web/static/js/core/ 目录(旧的未完成重构) - - [ ] 10.2 删除 src/web/static/js/services/ 目录 - - [ ] 10.3 删除 src/web/static/js/components/ 目录 - - [ ] 10.4 删除 src/web/static/js/pages/ 目录(如确认不再使用) - - [ ] 10.5 清理 index.html、chat.html、chat_http.html 中对已删除 JS 的引用 +- [x] 10. 清理旧代码 + - [x] 10.1 删除 src/web/static/js/core/ 目录(旧的未完成重构) + - [x] 10.2 删除 src/web/static/js/services/ 目录 + - [x] 10.3 删除 src/web/static/js/components/ 目录 + - [x] 10.4 删除 src/web/static/js/pages/ 目录 + - [x] 10.5 清理 index.html、chat.html、chat_http.html 中对已删除 JS 的引用 ## Notes