Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Breaking

- **删除 `openlark-helpdesk` 幻影/孤儿 API(#380)**:#351 helpdesk e2e catalog 核对发现
(1) `faq/faq_image` 与 `faq/image` 生产代码完全重复且从未 re-export/挂到 `Faq`——删除孤儿
`faq_image` 模块,保留 `image`(含 wiremock e2e);(2) `notification/list`
(`GET /open-apis/helpdesk/v1/notifications`,`HelpdeskApiV1::NotificationList`)不在
`api_list_export.csv` 的 8 个 notification 端点中,官方文档亦无 list——删除 list 源文件、
`Notification::list()`、公开 re-export 与 endpoint 变体。**无迁移路径**:list 对真实飞书
无 catalog/文档支撑;FAQ 图片请继续用 `Faq::image()`。

- **删除 `openlark-application` 幻影/残破 stub(#382)**:#351 e2e 化对照
`api_list_export.csv` 发现约 56 个从未可用的 stub——path 多一层
(`/open-apis/application/application/...`)、create/delete/patch 滥用 GET、
Expand Down
4 changes: 0 additions & 4 deletions crates/openlark-helpdesk/src/common/api_endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ pub enum HelpdeskApiV1 {
/// FAQ 图片端点。
FaqImage(String, String),
// Notification APIs
/// 通知列表端点。
NotificationList,
/// 获取通知端点。
NotificationGet(String),
/// 创建通知端点。
Expand Down Expand Up @@ -177,7 +175,6 @@ impl HelpdeskApiV1 {
format!("/open-apis/helpdesk/v1/faqs/{id}/image/{image_key}")
}
// Notification APIs
HelpdeskApiV1::NotificationList => "/open-apis/helpdesk/v1/notifications".to_string(),
HelpdeskApiV1::NotificationGet(id) => {
format!("/open-apis/helpdesk/v1/notifications/{id}")
}
Expand Down Expand Up @@ -280,7 +277,6 @@ mod tests {
HelpdeskApiV1::FaqDelete("id1".to_string()).to_url(),
HelpdeskApiV1::FaqSearch.to_url(),
HelpdeskApiV1::FaqImage("id1".to_string(), "id2".to_string()).to_url(),
HelpdeskApiV1::NotificationList.to_url(),
HelpdeskApiV1::NotificationGet("id1".to_string()).to_url(),
HelpdeskApiV1::NotificationCreate.to_url(),
HelpdeskApiV1::NotificationPatch("id1".to_string()).to_url(),
Expand Down
134 changes: 0 additions & 134 deletions crates/openlark-helpdesk/src/helpdesk/helpdesk/v1/faq/faq_image.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/openlark-helpdesk/src/helpdesk/helpdesk/v1/faq/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
pub mod create;
/// 删除接口。
pub mod delete;
/// faq_image 模块。
pub mod faq_image;
/// 获取接口。
pub mod get;
/// image 模块。
Expand Down
125 changes: 0 additions & 125 deletions crates/openlark-helpdesk/src/helpdesk/helpdesk/v1/notification/list.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ pub mod create;
pub mod execute_send;
/// 获取接口。
pub mod get;
/// 列表接口。
pub mod list;
/// 更新接口。
pub mod patch;
/// preview 模块。
Expand All @@ -35,11 +33,6 @@ impl Notification {
Self { config }
}

/// 获取推送通知列表
pub fn list(&self) -> list::ListNotificationRequest {
list::ListNotificationRequest::new(self.config.clone())
}

/// 创建推送通知
pub fn create(&self) -> create::CreateNotificationRequest {
create::CreateNotificationRequest::new(self.config.clone())
Expand Down Expand Up @@ -112,7 +105,6 @@ pub use cancel_send::{CancelSendNotificationRequest, CancelSendNotificationReque
pub use create::{CreateNotificationRequest, CreateNotificationRequestBuilder};
pub use execute_send::{ExecuteSendNotificationRequest, ExecuteSendNotificationRequestBuilder};
pub use get::{GetNotificationRequest, GetNotificationRequestBuilder};
pub use list::{ListNotificationRequest, ListNotificationRequestBuilder};
pub use patch::{PatchNotificationRequest, PatchNotificationRequestBuilder};
pub use preview::{PreviewNotificationRequest, PreviewNotificationRequestBuilder};
pub use submit_approve::{
Expand Down
Loading