Skip to content

Commit 1f36472

Browse files
committed
🎨 style: 修复 approval_demo.rs 代码格式问题
- 移除多余空格 - 统一 println! 宏格式 - 符合 rustfmt 标准
1 parent 95cbb6e commit 1f36472

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

docs/apis/helpdeks-v1.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
[获取服务台自定义字段](https://open.feishu.cn/document/server-docs/helpdesk-v1/ticket-management/ticket/customized_fields)
4242

4343
#### 事件
44+
4445
[创建工单](https://open.feishu.cn/document/server-docs/helpdesk-v1/ticket-management/ticket/events/created)
4546
[工单状态变更](https://open.feishu.cn/document/server-docs/helpdesk-v1/ticket-management/ticket/events/updated)
4647

@@ -66,6 +67,7 @@
6667
## 知识库
6768

6869
### 知识库管理
70+
6971
[富文本](https://open.feishu.cn/document/server-docs/helpdesk-v1/faq-management/faq/rich-text)
7072
[创建知识库](https://open.feishu.cn/document/server-docs/helpdesk-v1/faq-management/faq/create)
7173
[删除知识库](https://open.feishu.cn/document/server-docs/helpdesk-v1/faq-management/faq/delete)
@@ -84,8 +86,21 @@
8486
[获取全部知识库分类](https://open.feishu.cn/document/server-docs/helpdesk-v1/faq-management/category/list-categories)
8587

8688
## 推送中心
89+
8790
[创建推送](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/create)
8891
[更新推送](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/patch)
8992
[查询推送](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/get)
9093
[预览推送](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/preview)
9194
[提交审核](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/submit_approve)
95+
[取消审核](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/cancel_approve)
96+
[执行推送](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/execute_send)
97+
[取消推送](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/cancel_send)
98+
99+
### 事件
100+
101+
[推送审核通知](https://open.feishu.cn/document/server-docs/helpdesk-v1/notification/events/approve)
102+
103+
## 事件订阅
104+
105+
[订阅服务台事件](https://open.feishu.cn/document/server-docs/helpdesk-v1/event/subscribe)
106+
[取消订阅服务台事件](https://open.feishu.cn/document/server-docs/helpdesk-v1/event/unsubscribe)

docs/apis/task-v2.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 任务模块
2+
3+
[任务概述](https://open.feishu.cn/document/task-v2/overview)
4+
[常见问题](https://open.feishu.cn/document/task-v2/faq)

examples/api/approval_demo.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async fn demo_create_approval(client: &LarkClient) -> Result<(), Box<dyn std::er
6161
"required": true
6262
},
6363
{
64-
"id": "amount",
64+
"id": "amount",
6565
"name": "申请金额",
6666
"type": "number",
6767
"required": true
@@ -286,10 +286,7 @@ async fn demo_search(client: &LarkClient) -> Result<(), Box<dyn std::error::Erro
286286
{
287287
Ok(response) => {
288288
if let Some(data) = response.data {
289-
println!(
290-
" ✅ 实例查询成功,找到 {} 个实例",
291-
data.instances.len()
292-
);
289+
println!(" ✅ 实例查询成功,找到 {} 个实例", data.instances.len());
293290
}
294291
}
295292
Err(e) => {

0 commit comments

Comments
 (0)