wecom_rs/client/external_contact/enterprise_service/
mod.rs

1use crate::Result;
2use async_trait::async_trait;
3
4/// 企业服务人员管理
5#[async_trait]
6pub trait EnterpriseServiceManager {
7    /// 获取配置了客户联系功能的成员列表
8    /// https://developer.work.weixin.qq.com/document/path/92571
9    async fn get_follow_user_list(&self) -> Result<Vec<String>>;
10
11    // 客户联系[联系我]管理
12    // https://developer.work.weixin.qq.com/document/path/92577
13
14    /// 配置客户联系「联系我」方式
15    async fn contact_way_create(
16        &self,
17        params: ParamsContactWayCreate,
18    ) -> Result<RespContactWayCreate>;
19
20    /// 获取企业已配置的「联系我」方式
21    async fn contact_way_get(&self, config_id: &str) -> Result<ContactWay>;
22
23    /// 获取企业已配置的「联系我」列表
24    async fn contact_way_list(
25        &self,
26        params: Option<ParamsContactWayList>,
27    ) -> Result<Vec<ContactWay>>;
28
29    /// 更新企业已配置的「联系我」方式
30    async fn contact_way_update(&self, params: ParamsContactWayUpdate) -> Result<()>;
31
32    /// 删除企业已配置的「联系我」方式
33    async fn contact_way_delete(&self, config_id: &str) -> Result<()>;
34    /// 结束临时会话
35    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;