组织机构
组织结构列表
描述
查询组织机构列表
支持的模式
- client_credentials
请求方法
GET
请求地址
https://api.ecnu.edu.cn/api/v1/organization/list
请求参数
参数名 | 是否必填 | 备注 |
---|---|---|
departmentId | 否 | 部门代码,提供参数则返回部门代码对应的组织机构 |
parentId | 否 | 上级代码,提供参数则返回上级代码对应的组织机构,如和 departmentId 同时提供,则 departmentId 优先,此参数无效 |
pageNum | 是 | 分页第几页,从1开始 |
pageSize | 是 | 每页的数量 |
返回参数
参数名 | 类型 | 备注 |
---|---|---|
totalNum | number | 总共的条目数 |
pageSize | number | 每页的大小 |
rows | object array | 具体的返回 |
departmentId | string | 部门代码 |
parentId | string | 上级代码 |
level | number | 级别 |
department | string | 部门名称 |
status | string | 状态(1启用2禁用) |
isSt | string | 是否实体(1是0否) |
请求示例
curl -i -H "Authorization: Bearer e447e4b4b8e23973b42c44b8d5415603" "https://api.ecnu.edu.cn/api/v1/organization/list?pageNum=1&pageSize=10"
返回示例
json
{
"data": {
"totalNum": 19,
"pageSize": 10,
"rows": [
{
"level": 3,
"departmentId": "010100",
"isSt": "1",
"department": "教育科学学院院部",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010102",
"isSt": "0",
"department": "教育学系",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010103",
"isSt": "0",
"department": "心理学系",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010104",
"isSt": "0",
"department": "教育信息技术学系",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010105",
"isSt": "0",
"department": "课程与教学系",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010106",
"isSt": "0",
"department": "职业教育与成人教育研究所",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010107",
"isSt": "0",
"department": "高等教育研究所",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010108",
"isSt": "0",
"department": "理解教育研究所",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010109",
"isSt": "0",
"department": "教师教育政策研究数据中心",
"parentId": "0101",
"status": "1"
},
{
"level": 3,
"departmentId": "010110",
"isSt": "0",
"department": "终身教育研究中心",
"parentId": "0101",
"status": "1"
}
],
"pageNum": 1
},
"requestId": "65841fdd16225382844995265e6a03",
"errCode": 0,
"errMsg": "success",
"apiLog": null
}
新组织结构基本信息
描述
查询新版组织机构基本信息列表
新组织机构代码还未正式发布,以下接口仅供参考
支持的模式
- client_credentials
请求方法
GET
请求地址
https://api.ecnu.edu.cn/api/v3/organization/list
请求参数
参数名 | 是否必填 | 备注 |
---|---|---|
departmentId | 否 | 部门代码,提供参数则返回部门代码对应的组织机构 |
parentId | 否 | 上级代码,提供参数则返回上级代码对应的组织机构,如和 departmentId 同时提供,则 departmentId 优先,此参数无效 |
treeType | 是 | 组织机构类型,01党政管理机构,02各级党组织,03校级议事协调机构,04学术组织机构,05业务域机构 |
pageNum | 是 | 分页第几页,从1开始 |
pageSize | 是 | 每页的数量 |
返回参数
参数名 | 类型 | 备注 |
---|---|---|
data.totalNum | number | 总共的条目数 |
data.pageSize | number | 每页的大小 |
data.rows | object array | 具体的返回 |
row.departmentId | string | 部门代码 |
row.parentId | string | 上级代码 |
row.department | string | 部门名称 |
row.status | int | 状态(1启用2禁用) |
row.treeType | string | 组织机构类型,01党政管理机构,02各级党组织,03校级议事协调机构,04学术组织机构,05业务域机构 |
请求示例
curl -i -H "Authorization: Bearer e447e4b4b8e23973b42c44b8d5415603" "https://api.ecnu.edu.cn/api/v3/organization/list?pageNum=1&pageSize=1&treeType=01"
返回示例
json
{
"data": {
"totalNum": 856,
"pageSize": 10,
"rows": [{
"departmentId": "0",
"parentId": "",
"department": "华东师范大学",
"status": 1,
"treeType": "01"
},
{
"departmentId": "00",
"parentId": "0",
"department": "校部",
"status": 2,
"treeType": "01"
},
{
"departmentId": "01",
"parentId": "0",
"department": "院系",
"status": 1,
"treeType": "01"
},
{
"departmentId": "0101",
"parentId": "01",
"department": "教育科学学院",
"status": 2,
"treeType": "01"
},
{
"departmentId": "010100",
"parentId": "0101",
"department": "教育科学学院院部",
"status": 2,
"treeType": "01"
},
{
"departmentId": "010102",
"parentId": "0101",
"department": "教育学系",
"status": 2,
"treeType": "01"
},
{
"departmentId": "010103",
"parentId": "0101",
"department": "心理学系",
"status": 2,
"treeType": "01"
},
{
"departmentId": "010104",
"parentId": "0101",
"department": "教育信息技术学系",
"status": 2,
"treeType": "01"
},
{
"departmentId": "010105",
"parentId": "0101",
"department": "课程与教学系",
"status": 2,
"treeType": "01"
},
{
"departmentId": "010106",
"parentId": "0101",
"department": "职业教育与成人教育研究所",
"status": 2,
"treeType": "01"
}
],
"pageNum": 1
},
"errCode": 0,
"requestId": "0bc16eba16958706916602916e2497",
"errMsg": "success"
}