open_lark/service/cloud_docs/docx/
mod.rs

1use crate::core::config::Config;
2
3pub mod v1;
4
5pub struct DocxService {
6    pub v1: v1::V1,
7}
8
9impl DocxService {
10    pub fn new(config: Config) -> Self {
11        DocxService {
12            v1: v1::V1::new(config.clone()),
13        }
14    }
15
16    /// 使用共享配置(实验性)
17    pub fn new_from_shared(shared: std::sync::Arc<Config>) -> Self {
18        DocxService {
19            v1: v1::V1::new(shared.as_ref().clone()),
20        }
21    }
22}