Skip to content

[bug] helpdesk 清理:faq_image 重复孤儿模块 + notification list 疑似幻影 API #380

Description

@foxzool

#351 第 5 批 helpdesk e2e 化(PR 待开)的 6-agent catalog 交叉核对发现两处需清理:

1. faq/faq_image.rs —— 重复孤儿模块(高置信,建议删除)

crates/openlark-helpdesk/src/helpdesk/helpdesk/v1/faq/faq_image.rsfaq/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.rspub mod faq_image;

2. notification/list.rs —— 疑似幻影 API(需核实)

GET /open-apis/helpdesk/v1/notificationsNotificationList不在 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 处理。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingready-for-agentFully specified, ready for an AFK agentscope:apityped API 覆盖率、API 缺口与模型实现

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions