public class WxCpDepartmentServiceImpl extends Object implements WxCpDepartmentService
部门管理接口 Created by BinaryWang on 2017/6/24.
| 构造器和说明 | 
|---|
| WxCpDepartmentServiceImpl() | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| Long | create(WxCpDepart depart)
 部门管理接口 - 创建部门. | 
| void | delete(Long departId)
 部门管理接口 - 删除部门. | 
| WxCpDepart | get(Long id)
 部门管理接口 - 获取单个部门详情. | 
| List<WxCpDepart> | list(Long id)
 部门管理接口 - 获取部门列表. | 
| List<WxCpDepart> | simpleList(Long id)
 部门管理接口 - 获取子部门ID列表. | 
| void | update(WxCpDepart group)
 部门管理接口 - 更新部门. | 
public Long create(WxCpDepart depart) throws WxErrorException
WxCpDepartmentService部门管理接口 - 创建部门. 最多支持创建500个部门 详情请见: ...
create 在接口中 WxCpDepartmentServicedepart - 部门WxErrorException - 异常public WxCpDepart get(Long id) throws WxErrorException
WxCpDepartmentService部门管理接口 - 获取单个部门详情. 详情请见: ...
get 在接口中 WxCpDepartmentServiceid - 部门idWxErrorException - 异常public void update(WxCpDepart group) throws WxErrorException
WxCpDepartmentService部门管理接口 - 更新部门. 详情请见: ... 如果id为0(未部门),1(黑名单),2(星标组),或者不存在的id,微信会返回系统繁忙的错误
update 在接口中 WxCpDepartmentServicegroup - 要更新的group,group的id,name必须设置WxErrorException - 异常public void delete(Long departId) throws WxErrorException
WxCpDepartmentService部门管理接口 - 删除部门. 详情请见: ... 应用须拥有指定部门的管理权限
delete 在接口中 WxCpDepartmentServicedepartId - 部门idWxErrorException - 异常public List<WxCpDepart> list(Long id) throws WxErrorException
WxCpDepartmentService部门管理接口 - 获取部门列表. 详情请见: ...
list 在接口中 WxCpDepartmentServiceid - 部门id。获取指定部门及其下的子部门。非必需,可为nullWxErrorException - 异常public List<WxCpDepart> simpleList(Long id) throws WxErrorException
WxCpDepartmentService部门管理接口 - 获取子部门ID列表. 详情请见: ...
simpleList 在接口中 WxCpDepartmentServiceid - 部门id。获取指定部门及其下的子部门(以及子部门的子部门等等,递归)。 如果不填,默认获取全量组织架构WxErrorException - 异常Copyright © 2024. All rights reserved.