后端迁移商品匹配服务

This commit is contained in:
yml
2026-05-21 14:27:45 +08:00
parent ca6e8b43c9
commit c870414ad6
2 changed files with 75 additions and 49 deletions
@@ -280,6 +280,14 @@
- `npm run typecheck`
- `npm run build`
- `npm test` 共 125 个用例通过
34. 商品匹配服务迁移到 `.ts`
- `src/services/order/product-match-service.ts`
35. 外部商品 item、匹配候选、解析后的履约商品、店铺候选与配置读取已显式类型化
36. Docker 内验证通过:
- 商品匹配 / 订单 / webhook / bootstrap 相关 4 个测试文件共 13 个用例通过
- `npm run typecheck`
- `npm run build`
- `npm test` 共 125 个用例通过
## 下一步建议
@@ -287,6 +295,7 @@
1. 继续迁移服务层中最核心、最常改的订单 / 履约 / claim 模块
2. 逐步移除服务层 `@ts-nocheck`,优先处理 webhook service、自动发货、delivery task
3. 为 delivery task 补直接单测后再迁移,避免只依赖订单链路间接覆盖
## 执行原则