EnterpriseServiceManager

Trait EnterpriseServiceManager 

Source
pub trait EnterpriseServiceManager {
    // Required methods
    fn get_follow_user_list<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn contact_way_create<'life0, 'async_trait>(
        &'life0 self,
        params: ParamsContactWayCreate,
    ) -> Pin<Box<dyn Future<Output = Result<RespContactWayCreate>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn contact_way_get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        config_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<ContactWay>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn contact_way_list<'life0, 'async_trait>(
        &'life0 self,
        params: Option<ParamsContactWayList>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ContactWay>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn contact_way_update<'life0, 'async_trait>(
        &'life0 self,
        params: ParamsContactWayUpdate,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn contact_way_delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        config_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn temp_chat_close<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        userid: &'life1 str,
        external_userid: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

企业服务人员管理

Required Methods§

Source

fn get_follow_user_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

获取配置了客户联系功能的成员列表 https://developer.work.weixin.qq.com/document/path/92571

Source

fn contact_way_create<'life0, 'async_trait>( &'life0 self, params: ParamsContactWayCreate, ) -> Pin<Box<dyn Future<Output = Result<RespContactWayCreate>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

配置客户联系「联系我」方式

Source

fn contact_way_get<'life0, 'life1, 'async_trait>( &'life0 self, config_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<ContactWay>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

获取企业已配置的「联系我」方式

Source

fn contact_way_list<'life0, 'async_trait>( &'life0 self, params: Option<ParamsContactWayList>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ContactWay>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

获取企业已配置的「联系我」列表

Source

fn contact_way_update<'life0, 'async_trait>( &'life0 self, params: ParamsContactWayUpdate, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

更新企业已配置的「联系我」方式

Source

fn contact_way_delete<'life0, 'life1, 'async_trait>( &'life0 self, config_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

删除企业已配置的「联系我」方式

Source

fn temp_chat_close<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, userid: &'life1 str, external_userid: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

结束临时会话

Implementors§