1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//! # OpenLark 邮件模块
//!
//! OpenLark SDK 的邮件模块,提供飞书邮件组 API 的完整访问。
//!
//! ## 功能特性
//!
//! - **邮件组管理**: 创建、更新、删除、查询邮件组
//! - **成员管理**: 添加、删除邮件组成员
//! - **别名管理**: 邮件别名配置
//!
//! ## 使用示例
//!
//! ```rust,no_run
//! use openlark_mail::MailService;
//! use openlark_core::config::Config;
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! let config = Config::builder()
//! .app_id("your_app_id")
//! .app_secret("your_app_secret")
//! .build();
//!
//! let mail_service = MailService::new(config);
//!
//! // 创建邮件组
//! let result = mail_service
//! .mailgroup()
//! .create()
//! .mail_group_id("team@example.com")
//! .description("项目团队邮件组")
//! .execute()
//! .await?;
//! # Ok(())
//! # }
//! ```
// 通用模块
/// 邮件模块通用工具与端点定义。
// mail 模块
/// 邮件 API 模块。
// Prelude 模块
/// 邮件模块常用预导出。
// 重新导出核心服务
/// 邮件服务统一入口。
pub use MailService;
/// 邮件服务客户端类型别名(统一命名为 `XxxClient`)。
pub type MailClient = MailService;
/// 邮件模块版本信息
/// 当前 crate 版本号。
pub const VERSION: &str = env!;