由 #351 第 5 批 helpdesk e2e 化(PR 待开)的 6-agent catalog 交叉核对发现两处需清理:
1. faq/faq_image.rs —— 重复孤儿模块(高置信,建议删除)
crates/openlark-helpdesk/src/helpdesk/helpdesk/v1/faq/faq_image.rs 与 faq/image.rs 字节完全相同(diff 确认),两者都实现 GetFaqImageRequest(经 HelpdeskApiV1::FaqImage)。但 faq/mod.rs 只把 image::GetFaqImageRequest 接进 Faq::image()(line 71)并只从 image re-export(line 79);faq_image 模块从未被服务层或 re-export 引用 = 死代码。目录里 faq_image 端点只有一个。
建议:删除 faq_image.rs + faq/mod.rs 的 pub mod faq_image;。
2. notification/list.rs —— 疑似幻影 API(需核实)
GET /open-apis/helpdesk/v1/notifications(NotificationList)不在 api_list_export.csv——目录里 notification 只有 8 个端点(cancel_approve/cancel_send/create/execute_send/get/patch/preview/submit_approve),无 list/collection GET。实现本身不是 stub(有真实 URL/execute),但端点缺席官方目录。
两种可能:(a) 真幻影(应删);(b) 目录导出缺口(端点真实存在,目录漏了)。需对照飞书文档核实 GET /helpdesk/v1/notifications 是否真实存在;若不存在则按幻影移除。
关联
由 #351 第 5 批 helpdesk e2e 化(6-agent workflow,catalog 交叉核对)发现。本 PR 不改这两个文件(faq_image.rs 维持原样、notification/list.rs 未加 e2e),留待本 issue 处理。
由 #351 第 5 批 helpdesk e2e 化(PR 待开)的 6-agent catalog 交叉核对发现两处需清理:
1.
faq/faq_image.rs—— 重复孤儿模块(高置信,建议删除)crates/openlark-helpdesk/src/helpdesk/helpdesk/v1/faq/faq_image.rs与faq/image.rs字节完全相同(diff确认),两者都实现GetFaqImageRequest(经HelpdeskApiV1::FaqImage)。但faq/mod.rs只把image::GetFaqImageRequest接进Faq::image()(line 71)并只从imagere-export(line 79);faq_image模块从未被服务层或 re-export 引用 = 死代码。目录里faq_image端点只有一个。建议:删除
faq_image.rs+faq/mod.rs的pub mod faq_image;。2.
notification/list.rs—— 疑似幻影 API(需核实)GET /open-apis/helpdesk/v1/notifications(NotificationList)不在api_list_export.csv——目录里 notification 只有 8 个端点(cancel_approve/cancel_send/create/execute_send/get/patch/preview/submit_approve),无 list/collection GET。实现本身不是 stub(有真实 URL/execute),但端点缺席官方目录。两种可能:(a) 真幻影(应删);(b) 目录导出缺口(端点真实存在,目录漏了)。需对照飞书文档核实
GET /helpdesk/v1/notifications是否真实存在;若不存在则按幻影移除。关联
由 #351 第 5 批 helpdesk e2e 化(6-agent workflow,catalog 交叉核对)发现。本 PR 不改这两个文件(
faq_image.rs维持原样、notification/list.rs未加 e2e),留待本 issue 处理。