feat(shipping-notice): 添加识别定义和规则集管理功能,支持客户和站点的可配置识别规则

This commit is contained in:
hugo committed 2026-07-20 19:28:17 +08:00
1 parent 88408490d7
commit 34d489a2d1
167 files changed
+10365 -7978

No files matched your search

@@ -455,58 +455,6 @@
}
}
},
"/tools/parse_notice": {
"post": {
"operationId": "parse_notice",
"summary": "解析发货通知文本",
"description": "解析发货通知文本",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "发货任务引用:技术任务号 SN-20260529-ABCD1234 或业务号 WYC26071501"
},
"raw_text": {
"type": "string",
"description": "待解析的发货通知全文"
},
"structured": {
"type": "object",
"description": "Dify LLM 解析后的结构化结果对象。若提供,后端优先使用该对象中的 lines/confidence/reservation_id 等字段落库。",
"additionalProperties": true
},
"lang": {
"type": "string",
"description": "可选语言代码:zh|en|th"
}
},
"required": [
"task_id"
]
}
}
}
},
"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/update_notice_fields": {
"post": {
"operationId": "update_notice_fields",