Skip to content

组织机构

组织结构列表

描述

查询组织机构列表

支持的模式

  • client_credentials

请求方法

GET

请求地址

https://api.ecnu.edu.cn/api/v1/organization/list

请求参数

参数名是否必填备注
departmentId部门代码,提供参数则返回部门代码对应的组织机构
parentId上级代码,提供参数则返回上级代码对应的组织机构,如和 departmentId 同时提供,则 departmentId 优先,此参数无效
pageNum分页第几页,从1开始
pageSize每页的数量

返回参数

参数名类型备注
totalNumnumber总共的条目数
pageSizenumber每页的大小
rowsobject array具体的返回
departmentIdstring部门代码
parentIdstring上级代码
levelnumber级别
departmentstring部门名称
statusstring状态(1启用2禁用)
isStstring是否实体(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.totalNumnumber总共的条目数
data.pageSizenumber每页的大小
data.rowsobject array具体的返回
row.departmentIdstring部门代码
row.parentIdstring上级代码
row.departmentstring部门名称
row.statusint状态(1启用2禁用)
row.treeTypestring组织机构类型,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"
}