wecom_rs/client/contact/linked_corp/
mod.rs

1use crate::Result;
2use async_trait::async_trait;
3
4#[async_trait]
5pub trait LinkedCorpManager {
6    /// 获取应用的可见范围
7    /// https://developer.work.weixin.qq.com/document/path/93172
8    async fn linked_corp_agent_get_perm_list(&self) -> Result<ResponseAgentPermList>;
9    /// 获取互联企业成员详情信息
10    /// https://developer.work.weixin.qq.com/document/path/93171
11    async fn linked_corp_user_get(&self, user_id: &str) -> Result<UserInfo>;
12    /// 获取互联企业部门成员
13    /// https://developer.work.weixin.qq.com/document/path/93168
14    async fn linked_corp_user_simple_list(
15        &self,
16        department_id: &str,
17    ) -> Result<Vec<UserSimpleInfo>>;
18    /// 获取互联企业部门成员详情
19    /// https://developer.work.weixin.qq.com/document/path/93169
20    async fn linked_corp_user_list(&self, department_id: &str) -> Result<Vec<UserInfo>>;
21    /// 获取互联企业部门列表
22    /// https://developer.work.weixin.qq.com/document/path/93170
23    async fn linked_corp_department_list(&self, department_id: &str)
24        -> Result<Vec<DepartmentInfo>>;
25}
26
27mod model;
28pub use model::*;