You need to sign in or sign up before continuing.
教师版封面学情展现.md 2.75 KB

教师在课程封面展示学生成绩

获取各项练习成绩
/report/group/{class_id}/lesson/{lesson_id}

返回值

{  
  "词句练习" : [ {  
    "user_id" : 9200,  
    "user_name" : "吕寰",  
    "score" : 100  
  } ],  
  "词义练习" : [ {  
    "user_id" : 9200,  
    "user_name" : "吕寰",  
    "score" : 100  
  } ],  
  "拼写练习" : [ {  
    "user_id" : 9200,  
    "user_name" : "吕寰",  
    "score" : 96  
  } ],  
  "听力测验" : [ {  
    "user_id" : 7827,  
    "user_name" : "지연",  
    "score" : 67.0  
  } ],  
  "type" : [ "词句练习", "词义练习", "拼写练习", "听力测验" ]  
}  

type字段返回该课学生完成的全部练习类型,其他字段返回各个练习学生的完成情况。 该接口在课程封面页每隔十秒刷新一次来更新成绩展示。

获取本课讲授词句统计和口语练习成绩

/event/statistic/lesson?access_token={access_token}&groupId={class_id}&lesson={lesson_id}

{  
  "record" : [ {  
    "score" : 0,  
    "standard" : 0,  
    "user_id" : 7827,  
    "user_name" : "지연"  
  }, {  
    "score" : 736,  
    "standard" : 85,  
    "user_id" : 9200,  
    "user_name" : "吕寰"  
  } ],  
  "title" : {  
    "record" : "口语练习",  
    "learning" : "本课讲授词句"  
  }  
}  

title返回口语练习和本课讲授词句在展示时显示的名称,record返回口语练习的情况,learning返回本课讲授词句 该接口每次在课程成绩展示页只请求一次。

各项练习成绩在展示时的颜色从静态资源中获取:config/statistics.json

{  
    "练习": {  
        "color": "#60B336",  
        "template": "Study"  
    },  
    "词句练习": {  
        "color": "#60B336",  
        "template": "Study"  
    },  
    "词义练习": {  
        "color": "#60B336",  
        "template": "Study"  
    },  
    "拼写练习": {  
        "color": "#60B336",  
        "template": "Study"  
    },  
    "听力测验": {  
        "color": "#F16CB6",  
        "template": "Listen"  
    },  
    "考题实战": {  
        "color": "#41BCEB",  
        "template": "Exam"  
    },  
    "口语练习": {  
        "color": "#FF9E41",  
        "template": "Speech"  
    },  
    "本课讲授词句": {  
        "color": "#919DFF",  
        "template": "WordsRecord"  
    }  
}   

根据各项练习名来获取相应颜色,template字段在改资源更改时不会发生改变。