Trait dingtalk_rs::UserManager
source · [−]pub trait UserManager {
fn user_create<'life0, 'async_trait>(
&'life0 self,
params: ParamsCreateUser
) -> Pin<Box<dyn Future<Output = Result<ResponseUserCreate>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn user_update<'life0, 'async_trait>(
&'life0 self,
params: ParamsUpdateUser
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn user_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
userid: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn user_get<'life0, 'life1, 'async_trait>(
&'life0 self,
userid: &'life1 str,
language: Option<ParamLanguage>
) -> Pin<Box<dyn Future<Output = Result<UserDetail>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn user_get_by_mobile<'life0, 'life1, 'async_trait>(
&'life0 self,
mobile: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn user_list_simple_by_dept<'life0, 'async_trait>(
&'life0 self,
params: ParamsUserListSimpeByDept
) -> Pin<Box<dyn Future<Output = Result<PageResult<ListUserSimpleResponse>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
用户管理
Required Methods
fn user_create<'life0, 'async_trait>(
&'life0 self,
params: ParamsCreateUser
) -> Pin<Box<dyn Future<Output = Result<ResponseUserCreate>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn user_create<'life0, 'async_trait>(
&'life0 self,
params: ParamsCreateUser
) -> Pin<Box<dyn Future<Output = Result<ResponseUserCreate>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
创建用户 https://open.dingtalk.com/document/orgapp-server/user-information-creation
fn user_update<'life0, 'async_trait>(
&'life0 self,
params: ParamsUpdateUser
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn user_update<'life0, 'async_trait>(
&'life0 self,
params: ParamsUpdateUser
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
更新用户 https://open.dingtalk.com/document/orgapp-server/user-information-update
删除用户 https://open.dingtalk.com/document/orgapp-server/delete-a-user
查询用户详情 https://open.dingtalk.com/document/orgapp-server/query-user-details
根据手机号查询用户, 根据手机号可以查询在职员工的userId。如果员工离职,无法根据手机号获取用户的userId https://open.dingtalk.com/document/orgapp-server/query-users-by-phone-number
fn user_list_simple_by_dept<'life0, 'async_trait>(
&'life0 self,
params: ParamsUserListSimpeByDept
) -> Pin<Box<dyn Future<Output = Result<PageResult<ListUserSimpleResponse>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn user_list_simple_by_dept<'life0, 'async_trait>(
&'life0 self,
params: ParamsUserListSimpeByDept
) -> Pin<Box<dyn Future<Output = Result<PageResult<ListUserSimpleResponse>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
获取部门用户基础信息 https://open.dingtalk.com/document/orgapp-server/queries-the-simple-information-of-a-department-user