feat(shipping-notice): 增加发货通知建单幂等性支持及内容哈希校验
This commit is contained in:
1 parent
0a9bd6415d
commit
143e054d86
39 files changed
+1750
-80
No files matched your search
@@ -2999,7 +2999,10 @@ Agent 状态输入标准化 -> 货代续办 Agent
|
||||
| `upload_status` | 上传子状态 |
|
||||
| `upload_mode` | 上传模式 |
|
||||
| `upload_attempt` | 上传重试次数 |
|
||||
| `idempotency_key` | 上传幂等键 |
|
||||
| `idempotency_key` | **货代上传**幂等键(与建单幂等分离) |
|
||||
| `source_content_hash` | 源文件 SHA-256(小写十六进制,基于原始字节) |
|
||||
|
||||
`ShippingBatch` 另含 `create_idempotency_key`:**建单**幂等键;唯一约束 `(user_id, create_idempotency_key)` 防止双击/重试/并发重复建批。Chat Turn 与 Workspace API 经 `batch_from_notices.create_shipping_batch_from_notice_items()` 共用该逻辑。
|
||||
|
||||
常见 `process_status` / 子状态:
|
||||
|
||||
|
||||
Reference in new issue
Block a user