open-lark 0.14.0

Enterprise-grade Lark/Feishu Open API SDK with comprehensive Chinese documentation and advanced error handling
Documentation
use crate::core::config::Config;

pub use v2::V2;

pub mod v2;

pub struct WikiService {
    /// v2 API
    pub v2: V2,
}

impl WikiService {
    pub fn new(config: Config) -> Self {
        Self {
            v2: V2::new(config.clone()),
        }
    }

    /// 使用共享配置创建服务(实验性)
    pub fn new_from_shared(shared: std::sync::Arc<Config>) -> Self {
        Self {
            v2: V2::new(shared.as_ref().clone()),
        }
    }
}