From 24a5fad63035c48f863b27bafddecf8df4dd544c Mon Sep 17 00:00:00 2001 From: Jeason <1710884619@qq.com> Date: Wed, 8 Apr 2026 08:27:59 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=E6=BC=94=E8=BF=9B=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81=20=201.1?= =?UTF-8?q?/1.3/10=20=E5=B7=B2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .kiro/specs/architecture-evolution/design.md | 0 .kiro/specs/architecture-evolution/tasks.md | 18 +++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 .kiro/specs/architecture-evolution/design.md 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