部门管理

获取部门列表(department/list)

请求方式:GET(HTTPS请求地址:https://oapi.szns.edu.cn/department/list?access_token=ACCESS_TOKEN&id=ID

参数说明 :

参数 必须 说明
access_token 调用接口凭证
id 部门id。获取指定部门及其下的子部门。 如果不填,默认获取全量组织架构

返回结果:

{
   "errcode": 0,
   "errmsg": "ok",
   "department": [
       {
           "id": 2,
           "name": "语文组",
           "parentid": 1,
           "order": 10
       },
       {
           "id": 3,
           "name": "数学组",
           "parentid": 2,
           "order": 40
       }
   ]
}

参数说明:

参数 说明
errcode 返回码
errmsg 对返回码的文本描述内容
department 部门列表数据。
id 创建的部门id
name 部门名称
parentid 父部门id。根部门为1
order 在父部门中的次序值。order值越小排序越前。值范围是[0, 2^32)

2019 Tencent SmartCampus. all right reserved,powered by Gitbooktime: 2021-03-24 08:03:21

results matching ""

    No results matching ""

    results matching ""

      No results matching ""