diff --git a/internal/handler/openapi_i18n.go b/internal/handler/openapi_i18n.go index 953c9d2a..efdbb757 100644 --- a/internal/handler/openapi_i18n.go +++ b/internal/handler/openapi_i18n.go @@ -11,6 +11,7 @@ var apiDocI18nTagToKey = map[string]string{ "知识库": "knowledgeBase", "MCP": "mcp", "FOFA信息收集": "fofaRecon", "终端": "terminal", "WebShell管理": "webshellManagement", "对话附件": "chatUploads", "机器人集成": "robotIntegration", "多代理Markdown": "markdownAgents", + "项目管理": "projectManagement", } var apiDocI18nSummaryToKey = map[string]string{ @@ -70,6 +71,12 @@ var apiDocI18nSummaryToKey = map[string]string{ "列出技能包文件": "listSkillPackageFiles", "获取技能包文件内容": "getSkillPackageFile", "写入技能包文件": "putSkillPackageFile", "批量获取工具名称": "batchGetToolNames", "获取知识库统计": "getKnowledgeStats", + "列出项目": "listProjects", "创建项目": "createProject", "获取项目": "getProject", + "更新项目": "updateProject", "删除项目": "deleteProject", + "列出或按 key 获取事实": "listProjectFacts", "创建/更新事实": "upsertProjectFact", + "获取项目事实攻击路径图": "getProjectFactGraph", "列出项目全部事实边": "listProjectFactEdges", + "添加事实边": "createProjectFactEdge", "删除事实边": "deleteProjectFactEdge", + "将对话攻击链沉淀到项目事实图": "promoteAttackChainToProject", } var apiDocI18nResponseDescToKey = map[string]string{ @@ -97,6 +104,11 @@ var apiDocI18nResponseDescToKey = map[string]string{ "重命名成功": "renameSuccess", "验证成功,返回解密后的echostr": "wecomVerifySuccess", "处理成功": "processSuccess", "代理不存在": "agentNotFound", "保存成功": "saveSuccess", "操作结果": "operationResult", "执行结果": "executionResult", "连接不存在": "connectionNotFound", + "项目列表": "projectList", "项目详情": "projectDetail", + "事实列表或单条(可含 link_counts / outgoing_links)": "projectFactList", + "成功": "success", "nodes + edges": "factGraphNodesEdges", + "边列表": "edgeList", "边已创建": "edgeCreated", + "沉淀结果(facts/edges/graph)": "promoteAttackChainResult", } // enrichSpecWithI18nKeys 在 spec 的每个 operation 上写入 x-i18n-tags、x-i18n-summary,