Explorar o código

📝 docs(infrastructure): update infrastructure packages split documentation

- add "迁移认证中间件(auth.middleware.ts)" to the task list
- document auth middleware location with "(待迁移)" note
- add section about pending authentication middleware migration
- detail middleware migration requirements: file location, import paths, and availability
yourname hai 1 mes
pai
achega
e5644f202b
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      docs/stories/005.001.infrastructure-packages-split.md

+ 6 - 0
docs/stories/005.001.infrastructure-packages-split.md

@@ -75,6 +75,7 @@ Draft
   - [x] 迁移认证相关 Schema 定义
   - [x] 迁移认证 API 路由
   - [x] 配置 TypeScript 编译选项(包含 `"composite": true`)
+  - [ ] 迁移认证中间件(auth.middleware.ts)
   - [ ] 编写集成测试
 
 - [ ] 创建 file-module package (AC: 6)
@@ -149,6 +150,7 @@ Draft
   - `auth.service.ts` - 认证服务
   - `mini-auth.service.ts` - 小型认证服务
   - `packages/server/src/api/auth/` - 认证API路由
+  - `packages/server/src/middleware/auth.middleware.ts` - 认证中间件(待迁移)
 
 - **当前文件模块位置**: `packages/server/src/modules/files/`
   - `file.entity.ts` - 文件实体
@@ -392,6 +394,10 @@ Claude Sonnet 4.5 (claude-sonnet-4-5-20250929)
   - ✅ 创建了测试配置文件(vitest.config.ts)
   - ✅ 暂时注释了 file-module 相关依赖(因为 file-module 尚未创建)
   - ✅ 所有路由测试已迁移并适配新的包结构
+- ⏳ **认证中间件迁移待完成**
+  - ⏳ 需要将 `packages/server/src/middleware/auth.middleware.ts` 迁移到 auth-module
+  - ⏳ 需要更新中间件的导入路径以使用新的包结构
+  - ⏳ 需要确保中间件在 server package 中仍然可用
 
 ### File List
 **新增文件:**