K12服务体系技术规范 API接口说明

公共-教师列表

URL:/common/teacher_list

请求方式:GET

Headers:

参数 说明
Authorization access_token访问令牌

参数:

名称 必选 类型 说明
school_code true char 学校编码

响应:

名称 类型 说明
status int 状态
msg char 返回信息
open_id char 用户唯一标识id
teacher_name char 教师名字
account char 账号
mobile char 手机
sex int 性别 0:女 1:男
group_id int 用户组id
group_name string 用户组名称

返回的结果示例:

成功返回

{
    "list": [
        {
            "open_id": "6E218369-15F2-4E98-8735-2A8AF7E26479",
            "teacher_name": "张新珍",
            "account": "20941",
            "mobile": "13812259841",
            "sex": 0,
            "group": [
                {
                    "group_id": 101,
                    "group_name": "管理组"
                },
                {
                    "group_id": 102,
                    "group_name": "任课教师组"
                },
                {
                    "group_id": 103,
                    "group_name": "校级领导组"
                },
                {
                    "group_id": 104,
                    "group_name": "年级领导组"
                },
                {
                    "group_id": 105,
                    "group_name": "学科领导组"
                },
                {
                    "group_id": 106,
                    "group_name": "班主任组"
                }
            ]
        },
        {
            "open_id": "6E218369-15F2-4E98-8735-2A8AF7E26479",
            "teacher_name": "李新民",
            "account": "20941",
            "mobile": "13812259841",
            "sex": 1,
            "group": [
                {
                    "group_id": 101,
                    "group_name": "管理组"
                },
                {
                    "group_id": 102,
                    "group_name": "任课教师组",
                    "details": [
                        {
                            "course_id": 1,
                            "course_name": "语文",
                            "class_id": 92,
                            "class_name": "(2)班",
                            "grade_id": 203,
                            "grade_name": "初二年级"
                        },
                        {
                            "course_id": 2,
                            "course_name": "数学",
                            "class_id": 92,
                            "class_name": "(2)班",
                            "grade_id": 203,
                            "grade_name": "初二年级"
                        }
                    ]
                },
                {
                    "group_id": 103,
                    "group_name": "校级领导组"
                },
                {
                    "group_id": 104,
                    "group_name": "年级领导组"
                },
                {
                    "group_id": 105,
                    "group_name": "学科领导组"
                },
                {
                    "group_id": 106,
                    "group_name": "班主任组"
                }
            ]
        }
    ]
}

失败返回

{
    "status": <ErrorCode>,
    "msg": <ErrorMessage>
}