feat(trading): support multi-item purchase intents

This commit is contained in:
2026-08-31 11:41:39 +08:00
parent 865bbe3724
commit f76c0a1518
7 changed files with 291 additions and 57 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ PC UA 在搜索页、详情页、店铺页上都能拿到完整模板。因此
| 接口 | 说明 |
| --- | --- |
| `GET /health` | 健康检查,含 worker 心跳、长时间无人领任务告警 |
| `POST /api/orders` | 上游提交下单意图(幂等) |
| `POST /api/orders` | 上游提交下单意图(幂等)`intent.items` 支持一次购买多个商品,旧版 `intent.item_url` 仍兼容 |
| `GET /api/orders/lease` | 本地 worker 长轮询领取(全局并发度 1) |
| `POST /api/orders/{id}/renew` | 续租(worker 在长任务里每 60s 调一次) |
| `POST /api/orders/{id}/report` | 本地回报订单状态(同 state 重复上报幂等) |