com.github.sd4324530.fastweixin.company.api
类 QYDepartmentAPI

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.company.api.QYBaseAPI
      继承者 com.github.sd4324530.fastweixin.company.api.QYDepartmentAPI

public class QYDepartmentAPI
extends QYBaseAPI

==================================================================== 上海聚攒软件开发有限公司 --------------------------------------------------------------------

版本:
1.0.beta ====================================================================
作者:
Nottyjay

字段摘要
 
从类 com.github.sd4324530.fastweixin.company.api.QYBaseAPI 继承的字段
BASE_API_URL, config
 
构造方法摘要
QYDepartmentAPI(QYAPIConfig config)
          构造方法,设置apiConfig
 
方法摘要
 CreateDepartmentResponse create(QYDepartment department)
          创建部门
 QYResultType delete(Integer id)
          删除部门
 GetDepartmentListResponse getList(Integer parentId)
          获取部门列表
 QYResultType update(QYDepartment department)
          更新部门
 
从类 com.github.sd4324530.fastweixin.company.api.QYBaseAPI 继承的方法
executeGet, executePost, executePost, isSuccess
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

QYDepartmentAPI

public QYDepartmentAPI(QYAPIConfig config)
构造方法,设置apiConfig

参数:
config - 微信API配置对象
方法详细信息

getList

public GetDepartmentListResponse getList(Integer parentId)
获取部门列表

参数:
parentId - 父级部门ID。可不填,不填表示顶级部门
返回:
部门列表

create

public CreateDepartmentResponse create(QYDepartment department)
创建部门

参数:
department - 部门信息
返回:
部门信息

update

public QYResultType update(QYDepartment department)
更新部门

参数:
department - 需要更新的部门
返回:
更新结果

delete

public QYResultType delete(Integer id)
删除部门

参数:
id - 部门ID
返回:
删除结果


Copyright © 2017. All rights reserved.