public class WxCpUserServiceImpl extends Object implements WxCpUserService
Created by BinaryWang on 2017/6/24.
| 构造器和说明 |
|---|
WxCpUserServiceImpl(WxCpService mainService) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
authenticate(String userId)
用在二次验证的时候
企业在员工验证成功后,调用本方法告诉企业号平台该员工关注成功。
|
void |
create(WxCpUser user)
新建用户
|
void |
delete(String... userIds)
删除用户/批量删除成员
http://qydev.weixin.qq.com/wiki/index.php?
|
void |
deleteOne(String userId) |
WxCpUser |
getById(String userid)
获取用户
|
List<WxCpUser> |
listByDepartment(Integer departId,
Boolean fetchChild,
Integer status)
获取部门成员(详情)
http://qydev.weixin.qq.com/wiki/index.php?
|
List<WxCpUser> |
listSimpleByDepartment(Integer departId,
Boolean fetchChild,
Integer status)
获取部门成员
http://qydev.weixin.qq.com/wiki/index.php?
|
void |
update(WxCpUser user)
更新用户
|
public WxCpUserServiceImpl(WxCpService mainService)
public void authenticate(String userId) throws WxErrorException
WxCpUserService用在二次验证的时候 企业在员工验证成功后,调用本方法告诉企业号平台该员工关注成功。
authenticate 在接口中 WxCpUserServiceuserId - 用户idWxErrorExceptionpublic void create(WxCpUser user) throws WxErrorException
WxCpUserServicecreate 在接口中 WxCpUserServiceuser - 用户对象WxErrorExceptionpublic void update(WxCpUser user) throws WxErrorException
WxCpUserServiceupdate 在接口中 WxCpUserServiceuser - 用户对象WxErrorExceptionpublic void deleteOne(String userId) throws WxErrorException
WxErrorExceptionpublic void delete(String... userIds) throws WxErrorException
WxCpUserService删除用户/批量删除成员 http://qydev.weixin.qq.com/wiki/index.php?title=管理成员#.E6.89.B9.E9.87.8F.E5.88.A0.E9.99.A4.E6.88.90.E5.91.98
delete 在接口中 WxCpUserServiceuserIds - 员工UserID列表。对应管理端的帐号WxErrorExceptionpublic WxCpUser getById(String userid) throws WxErrorException
WxCpUserServicegetById 在接口中 WxCpUserServiceuserid - 用户idWxErrorExceptionpublic List<WxCpUser> listByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException
WxCpUserService获取部门成员(详情) http://qydev.weixin.qq.com/wiki/index.php?title=管理成员#.E8.8E.B7.E5.8F.96.E9.83.A8.E9.97.A8.E6.88.90.E5.91.98.28.E8.AF.A6.E6.83.85.29
listByDepartment 在接口中 WxCpUserServicedepartId - 必填。部门idfetchChild - 非必填。1/0:是否递归获取子部门下面的成员status - 非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加WxErrorExceptionpublic List<WxCpUser> listSimpleByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException
WxCpUserService获取部门成员 http://qydev.weixin.qq.com/wiki/index.php?title=管理成员#.E8.8E.B7.E5.8F.96.E9.83.A8.E9.97.A8.E6.88.90.E5.91.98
listSimpleByDepartment 在接口中 WxCpUserServicedepartId - 必填。部门idfetchChild - 非必填。1/0:是否递归获取子部门下面的成员status - 非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加WxErrorExceptionCopyright © 2017. All rights reserved.