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

公共-学校统计

URL:/common/school_statistics

请求方式:GET

Headers:

参数 说明
Authorization access_token访问令牌

参数:

名称 必选 类型 说明
school_code true char 学校编码
begin_time true char 学年开始日期,2018-09-01
end_time true char 学年结束日期,2019-08-31

响应:

名称 类型 说明
status int 状态
msg char 返回信息
teacher_name char 教师名称
teacher_id_card char 教师身份证号
exercise_num int 练习次数
guiding_num int 导学次数
interactive_class_num int 互动课堂次数
test_num int 测验次数
exam_num int 考试次数
activity_num int 活动次数
marking_num int 阅卷次数
noticep_num int 家校公告次数
noticet_num int 校内通知次数
rescourse_num int 上传资源数

返回的结果示例:

成功返回

{
    "list": [
        {
            "teacher_name": "张三",
            "teacher_id_card": "322901199005195212",
            "exercise_num": 10,
            "guiding_num": 15,
            "interactive_class_num": 21,
            "test_num": 22,
            "exam_num": 13,
            "activity_num": 23,
            "marking_num": 8,
            "noticep_num": 32,
            "noticet_num": 13,
            "rescourse_num": 13
        },
        {
            "teacher_name": "李四",
            "teacher_id_card": "322801199006195216",
            "exercise_num": 11,
            "guiding_num": 14,
            "interactive_class_num": 21,
            "test_num": 22,
            "exam_num": 13,
            "activity_num": 23,
            "marking_num": 8,
            "noticep_num": 32,
            "noticet_num": 13,
            "rescourse_num": 13
        },
        {
            "teacher_name": "王五",
            "teacher_id_card": "322401199003295214",
            "exercise_num": 15,
            "guiding_num": 10,
            "interactive_class_num": 21,
            "test_num": 21,
            "exam_num": 14,
            "activity_num": 22,
            "marking_num": 8,
            "noticep_num": 32,
            "noticet_num": 13,
            "rescourse_num": 13
        }
    ]
}

失败返回:

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