public class WxCpDepartmentServiceImpl extends Object implements WxCpDepartmentService
部门管理接口 Created by BinaryWang on 2017/6/24.
| 构造器和说明 |
|---|
WxCpDepartmentServiceImpl(WxCpService mainService) |
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
create(WxCpDepart depart)
部门管理接口 - 创建部门
最多支持创建500个部门
详情请见: http://mp.weixin.qq.com/wiki/index.php?
|
void |
delete(Integer departId)
部门管理接口 - 删除部门
|
List<WxCpDepart> |
list(Integer id)
部门管理接口 - 查询部门
详情请见: http://qydev.weixin.qq.com/wiki/index.php?
|
void |
update(WxCpDepart group)
部门管理接口 - 修改部门名
详情请见: http://mp.weixin.qq.com/wiki/index.php?
|
public WxCpDepartmentServiceImpl(WxCpService mainService)
public Integer create(WxCpDepart depart) throws WxErrorException
WxCpDepartmentService部门管理接口 - 创建部门 最多支持创建500个部门 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=部门管理接口
create 在接口中 WxCpDepartmentServicedepart - 部门WxErrorExceptionpublic void update(WxCpDepart group) throws WxErrorException
WxCpDepartmentService部门管理接口 - 修改部门名 详情请见: http://mp.weixin.qq.com/wiki/index.php?title=部门管理接口 如果id为0(未部门),1(黑名单),2(星标组),或者不存在的id,微信会返回系统繁忙的错误
update 在接口中 WxCpDepartmentServicegroup - 要更新的group,group的id,name必须设置WxErrorExceptionpublic void delete(Integer departId) throws WxErrorException
WxCpDepartmentService部门管理接口 - 删除部门
delete 在接口中 WxCpDepartmentServicedepartId - 部门idWxErrorExceptionpublic List<WxCpDepart> list(Integer id) throws WxErrorException
WxCpDepartmentService部门管理接口 - 查询部门 详情请见: http://qydev.weixin.qq.com/wiki/index.php?title=%E7%AE%A1%E7%90%86%E9%83%A8%E9%97%A8#.E8.8E.B7.E5.8F.96.E9.83.A8.E9.97.A8.E5.88.97.E8.A1.A8
list 在接口中 WxCpDepartmentServiceid - 部门id。获取指定部门及其下的子部门。非必需,可为nullWxErrorExceptionCopyright © 2018. All rights reserved.