部门信息
# 查询部门信息
查询所有部门信息
请求方式 :POST
请求地址 :https://api.zkbiocloud.com/open/edu/school/basic/v1/department/info/list
请求数据
header域
| 入参名称 | 入参类型 | 默认值 | 必填 | 入参说明 |
|---|---|---|---|---|
| Content-Type | String | application/json | 是 | 指定请求的媒体类型 |
| Authorization | String | 是 | 令牌,详见令牌说明 |
body域
{
"payload": {
"params": {}
}
}
1
2
3
4
5
2
3
4
5
入参说明
| 入参名称 | 入参类型 | 参数长度 | 默认值 | 必填 | 入参说明 |
|---|
返回结果
{
"code": "00000000",
"payload": {
"results": [
{
"departmentId": "1",
"departmentName": "新亭小学",
"departmentFullName": "新亭小学",
"departmentParentId": "0"
},
{
"departmentId": "aaff452c3fdd49538afab9556f580eda",
"departmentName": "保安室",
"departmentFullName": "新亭小学/保安室",
"departmentParentId": "1"
}
]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
出参说明
| 出参名称 | 出参类型 | 出参说明 |
|---|---|---|
| code | String | 响应返回码 |
| departmentId | String | 部门ID(32位的uuid) |
| departmentName | String | 部门名称(需授权) |
| departmentFullName | String | 部门父级到该级的全部名称(需授权) |
| departmentParentId | String | 部门父级ID(32位的uuid) |