后端迁移库存服务模块

This commit is contained in:
yml
2026-05-21 14:17:14 +08:00
parent 5711d38c8f
commit ab3a8caa9f
2 changed files with 55 additions and 10 deletions
+9 -1
View File
@@ -256,13 +256,21 @@
- `npm run typecheck`
- `npm run build`
- `npm test` 共 125 个用例通过
25. 服务层首批迁移到 `.ts`
- `src/services/order/inventory-service.ts`
26. 库存服务的 reserve/release 输入、依赖注入函数、返回库存行已显式类型化
27. Docker 内验证通过:
- `src/services/order/inventory-service.test.js` 共 5 个用例通过
- `npm run typecheck`
- `npm run build`
- `npm test` 共 125 个用例通过
## 下一步建议
第一批继续推进时,建议按这个顺序:
1. 继续迁移服务层中最核心、最常改的订单 / 履约 / claim 模块
2. 逐步移除服务层 `@ts-nocheck`,优先处理自动发货、claim session、webhook service
2. 逐步移除服务层 `@ts-nocheck`,优先处理 claim session、webhook service、自动发货
## 执行原则