批次4死代码大扫除: 删triage三件套(H5零挂载)+ /approval/keywords端点 + scheduler.py孤儿模块 + 3个.bak文件 + get_reply_stream(~96行)
This commit is contained in:
@@ -983,18 +983,6 @@ async def urge_approval(
|
||||
return success_response(data=result)
|
||||
|
||||
|
||||
@router.get("/approval/keywords")
|
||||
async def get_approval_keywords():
|
||||
"""获取所有审批关键词(用于前端关键词检测)"""
|
||||
keywords = []
|
||||
for template in APPROVAL_TEMPLATES.values():
|
||||
for kw in template["keywords"]:
|
||||
keywords.append({
|
||||
"keyword": kw,
|
||||
"template_id": template["id"],
|
||||
"template_name": template["name"],
|
||||
"type": template["type"],
|
||||
})
|
||||
return success_response(data=keywords)
|
||||
|
||||
|
||||
# v4.0 批次4:GET /approval/keywords 端点已删除
|
||||
# (前端 getApprovalKeywords 调用已随 v3.0 ApprovalCardModal 重构移除,
|
||||
# 仅剩 .bak 备份文件引用;关键词匹配现由 ApprovalMatcher 后端统一处理)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user