feat(shipping-notice): 新增库存确认来源接口及相关逻辑
This commit is contained in:
1 parent
a31735b689
commit
0a9bd6415d
69 files changed
+8442
-775
No files matched your search
@@ -346,6 +346,50 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/tools/confirm_inventory_source": {
|
||||
"post": {
|
||||
"operationId": "confirm_inventory_source",
|
||||
"summary": "在库存源人工检查点确认正式库存查询来源(仅提交 source_code)",
|
||||
"description": "库存源门禁:稳定身份须同时具备 source_code、source_type、site_id、warehouse_id,且 routing_fingerprint 与当前配置版本一致。Tool API 使用集成密钥鉴权,确认人审计由宿主会话内部链路写入,不接受外部 user_id。若返回 needs_human,说明身份未完整解析或需先完成解析确认。",
|
||||
"parameters": [],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"task_id": {
|
||||
"type": "string",
|
||||
"description": "发货任务编号(task id),如 SN-20260529-ABCD1234"
|
||||
},
|
||||
"source_code": {
|
||||
"type": "string",
|
||||
"description": "启用配置中的库存源编码,如 DSV360_AWSDU、CRANE;站点 site_id 与库位 warehouse_id 由后端根据配置与订单路由解析,禁止前端直传"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"task_id",
|
||||
"source_code"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Tool response (status: ok|running|needs_human|failed). May include checkpoint, human_options, action_buttons.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/tools/submit_decision": {
|
||||
"post": {
|
||||
"operationId": "submit_decision",
|
||||
@@ -411,8 +455,8 @@
|
||||
"/tools/get_task_status": {
|
||||
"post": {
|
||||
"operationId": "get_task_status",
|
||||
"summary": "查询任务当前状态与 human_options。task_id 与 conversation_id 至少传一个",
|
||||
"description": "查询任务当前状态与 human_options。task_id 与 conversation_id 至少传一个",
|
||||
"summary": "查询任务当前状态与 human_options;响应含 inventory_source_* 独立字段与候选结构",
|
||||
"description": "返回 inventory_source_code、inventory_source_type、inventory_site_id、inventory_warehouse_id、inventory_source_status(unresolved|ambiguous|resolved|user_confirmed|invalid|conflicted)、inventory_source_method、inventory_source_config_version、inventory_routing_fingerprint、inventory_source_confirmed_by、inventory_source_confirmed_at,以及 step_payload.inventory_source_resolution.candidates。",
|
||||
"parameters": [],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
@@ -488,4 +532,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user