报价模板下线分类字段,匹配只靠业务类型与关键词;并补后台站点标题配置。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-09-15 14:31:52 +08:00
co-authored by Cursor
parent 0a3c74e3a1
commit 235ecd8c83
10 changed files with 45 additions and 117 deletions
@@ -34,7 +34,6 @@ class TemplateEntry:
version_id: str = ""
mapping_json: str = ""
biz_type: str = ""
category: str = ""
keywords: tuple[str, ...] = ()
is_default: bool = False
@@ -94,7 +93,6 @@ def entries_from_ledger_response(resp: LedgerResponse) -> list[TemplateEntry]:
version_id=str(it.get("versionId") or ""),
mapping_json=str(it.get("mappingJson") or ""),
biz_type=str(it.get("bizType") or ""),
category=str(it.get("category") or ""),
keywords=tuple(str(x) for x in (it.get("keywords") or []) if str(x).strip()),
is_default=bool(it.get("isDefault")),
)
@@ -155,7 +153,6 @@ def registry_as_dicts() -> list[dict[str, Any]]:
"template_id": e.template_id,
"version_no": e.version_no,
"biz_type": e.biz_type,
"category": e.category,
}
for e in list_template_registry()
]