Skip to content

企学院获取组织架构

拥有此API的权限集
学员管理-查询(限企学院)

请求方式及url

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.college.department.get/1.0.0
  • 频率限制:10秒3000次

接口调试

请求参数
响应结果
暂无响应数据

请求参数

参数名必选类型说明
access_tokenstring专属token
department_idint部门id,默认根部门是1
fetch_childint是否递归子部门:0-否,1-是;不传默认为是

请求示例

{
   "access_token":"xe_xxx",
   "fetch_child":0,
   "department_id":1
}

返回参数

参数名类型说明
codeint错误码
msgstring错误描述
dataarray返回数据
返回数据data
参数名类型说明
department_idstring部门id
namestring部门名称
parent_idstring父id
sortint排序
user_numint部门的用户数
childrenobject子部门的信息

返回示例

{
   "code": 0,
   "msg": "OK",
   "data": [
       {
           "department_id": "19",
           "name": "name",
           "parent_id": "1",
           "sort": 0,
           "user_num": -1,
           "children": [
               {
                   "department_id": "24",
                   "name": "子部门3",
                   "parent_id": "19",
                   "sort": 0,
                   "user_num": -1,
                   "children": []
               }
           ]
       }
   ]
}