wecom_rs/client/external_contact/enterprise_service/
mod.rs1use crate::Result;
2use async_trait::async_trait;
3
4#[async_trait]
6pub trait EnterpriseServiceManager {
7 async fn get_follow_user_list(&self) -> Result<Vec<String>>;
10
11 async fn contact_way_create(
16 &self,
17 params: ParamsContactWayCreate,
18 ) -> Result<RespContactWayCreate>;
19
20 async fn contact_way_get(&self, config_id: &str) -> Result<ContactWay>;
22
23 async fn contact_way_list(
25 &self,
26 params: Option<ParamsContactWayList>,
27 ) -> Result<Vec<ContactWay>>;
28
29 async fn contact_way_update(&self, params: ParamsContactWayUpdate) -> Result<()>;
31
32 async fn contact_way_delete(&self, config_id: &str) -> Result<()>;
34 async fn temp_chat_close(&self, userid: &str, external_userid: &str) -> Result<()>;
36}
37
38mod dto;
39pub use dto::*;
40
41mod model;
42pub use model::*;
43
44mod enterprise_service;