open_lark/service/cloud_docs/assistant/mod.rs
1use crate::core::config::Config;
2
3pub use v1::V1;
4
5pub mod v1;
6
7/// 云文档助手服务
8pub struct AssistantService {
9 /// V1版本API
10 pub v1: V1,
11}
12
13impl AssistantService {
14 pub fn new(config: Config) -> Self {
15 Self {
16 v1: V1::new(config.clone()),
17 }
18 }
19
20 /// 使用共享配置(实验性)
21 pub fn new_from_shared(shared: std::sync::Arc<Config>) -> Self {
22 Self {
23 v1: V1::new(shared.as_ref().clone()),
24 }
25 }
26}