wecom_rs/client/external_contact/on_job_inherit/
mod.rs

1use crate::Result;
2use async_trait::async_trait;
3
4#[async_trait]
5pub trait OnJobInheritManager {
6    /// 分配在职成员的客户
7    /// https://developer.work.weixin.qq.com/document/path/92125
8    async fn transfer_customer(
9        &self,
10        params: ParamsTransferCustomer,
11    ) -> Result<Vec<ResponeTransferCustomer>>;
12
13    /// 查询客户接替状态
14    /// https://developer.work.weixin.qq.com/document/path/94088
15    async fn transfer_result(
16        &self,
17        params: ParamsTransferResult,
18    ) -> Result<ResponeTransferResultList>;
19    /// 分配在职成员的客户群
20    /// 企业可通过此接口,将在职成员为群主的群,分配给另一个客服成员
21    /// https://developer.work.weixin.qq.com/document/path/95703
22    /// chat_id_list 需要转群主的客户群ID列表。取值范围: 1 ~ 100
23    /// new_owner 新群主ID
24    async fn transfer_onjob_groupchat(
25        &self,
26        chat_id_list: &[&str],
27        new_owner: &str,
28    ) -> Result<Vec<FailedChat>>;
29}
30
31mod dto;
32mod on_job_inherit;
33pub use dto::*;
34mod model;
35pub use model::*;