public interface WxCpDepartmentService
部门管理接口 Created by BinaryWang on 2017/6/24.
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
create(WxCpDepart depart)
部门管理接口 - 创建部门
最多支持创建500个部门
详情请见: http://mp.weixin.qq.com/wiki/index.php?
|
void |
delete(Integer departId)
部门管理接口 - 删除部门
|
List<WxCpDepart> |
listAll()
部门管理接口 - 查询所有部门
详情请见: http://mp.weixin.qq.com/wiki/index.php?
|
void |
update(WxCpDepart group)
部门管理接口 - 修改部门名
详情请见: http://mp.weixin.qq.com/wiki/index.php?
|
Integer create(WxCpDepart depart) throws WxErrorException
部门管理接口 - 创建部门 最多支持创建500个部门 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=部门管理接口
depart - 部门WxErrorExceptionList<WxCpDepart> listAll() throws WxErrorException
部门管理接口 - 查询所有部门 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=部门管理接口
WxErrorExceptionvoid update(WxCpDepart group) throws WxErrorException
部门管理接口 - 修改部门名 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=部门管理接口 如果id为0(未部门),1(黑名单),2(星标组),或者不存在的id,微信会返回系统繁忙的错误
group - 要更新的group,group的id,name必须设置WxErrorExceptionvoid delete(Integer departId) throws WxErrorException
部门管理接口 - 删除部门
departId - 部门idWxErrorExceptionCopyright © 2017. All rights reserved.