@sewise-dev
2018-07-10T02:32:44.000000Z
字数 6819
阅读 821
大数据
编号 | 版本 | 说明 | 作者 | 日期 |
---|---|---|---|---|
1 | v1.0 | 初始版本 | jacky | 2018-6-20 |
/score/operation/:student_id
application/json
Get
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
data | Array | 返回结果 |
data
返回字段 | 字段类型 | 说明 |
---|---|---|
date | string | 日期 |
base_score | int | 基础总分 |
base_score_item | Array | 基础信息 |
behavior_score | int | 行为总分 |
behavior_score_item | Array | 行为信息 |
active_score | int | 活跃总分 |
active_score_item | Array | 活跃信息 |
total_score | int | 总分 |
Request
curl -X Get -H "Content-Type:application/json"
http://statistics.luobo.com/score/operation/530
Response
{"success":true,"data":{"user_id":"530","user_type":"1","date":"2018-06-20","organ_id":"18","base_score":52,"base_score_item":[{"content":"未设置头像","score":-3},{"content":"未绑定手机","score":-5},{"content":"设置教育信息","score":10}],"behavior_score":0,"behavior_score_item":[{"content":"今日完成0个课时的学习","score":0},{"content":"今日在线学习累计0小时","score":0}],"active_score":5,"active_score_item":[{"content":"今日按时点名上课","score":5},{"content":"今日累计在线提问0次","score":0},{"content":"今日完成课堂在线互动0次","score":0},{"content":"今日累计发言0次","score":0}],"total_score":57,"time":"1529481908673"}}
/statistics/student/onlineStudy
application/json
Get
参数 必选 类型 说明 student_id 是 string 学生id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
result
返回字段 | 字段类型 | 说明 |
---|---|---|
today_learn_klg | int | 今日知识点擦除数量 |
today_learn_swl | int | 今日课时学习数 |
today_question | int | 今日答题数目 |
today_online_time | int | 今日在线学习时间 |
total_learn_klg | int | 知识点擦除数量 |
total_learn_swl | int | 课时学习数 |
total_question | int | 答题数目 |
total_online_time | int | 在线学习时间 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/onlineStudy
Response
{"status":200,"result":{"today_learn_klg":0,"today_learn_swl":0,"today_question":0,"today_online_time":0,"total_learn_klg":12,"total_learn_swl":3,"total_question":15,"total_online_time":41969,
"online_list":[{"data_time":"2017-02-20T00:00:00.000Z","online_time":39664,"prepare_time":2342,"review_time":3516,"learn_klg":8,"learn_swl":2,"question":10},{"date_time":"2017-02-21T00:00:00.000Z","timetag":1487606400,"online_time":2305,"prepare_time":737,"review_time":1107,"learn_klg":4,"learn_swl":1,"question":5}]}}
/statistics/student/faceRanking
application/json
Get
参数 必选 类型 说明 student_id 是 string 学生id day_start_time 是 string 开始时间 day_end_time 是 string 结束时间
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
result
返回字段 | 字段类型 | 说明 |
---|---|---|
list | Array | 专注度列表 |
precent | Array | 情绪分布列表 |
list
返回字段 | 字段类型 | 说明 |
---|---|---|
day | string | 日期 |
precent | string | 分数 |
precent
返回字段 | 字段类型 | 说明 |
---|---|---|
happy | int | 开心百分比 |
low | int | 低落百分比 |
calm | int | 平静百分比 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/faceRanking
Response
{"status":200,"result":{"list":[{"day":"11/2","precent":"89.00"}],"precent":{"happy":0,"low":0,"calm":"100.00"}}
/statistics/student/subject
application/json
Get
参数 必选 类型 说明 student_id 是 string 学生id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
result
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 学科code |
value | Array | 返回耗时结果 |
value
返回字段 | 字段类型 | 说明 |
---|---|---|
online_time | int | 返回耗时 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/subject
Response
{"status":200,"result":[{"code":545,"value":{"online_time":111}}]}
/studentStatistics/studyinfo
application/json
Get
参数 必选 类型 说明 student_id 是 string 学生id day_start_time 是 string 开始时间 day_end_time 是 string 结束时间
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
result/course
result/course/all-总的纪录
返回字段 | 字段类型 | 说明 |
---|---|---|
finishtotal | string | 课程总数 |
wipetotal | string | 知识点总数 |
wrongtotal | string | 答题总数 |
righttotal | string | 答题总数 |
swltotal | string | 课时总数 |
klgtotal | string | 知识点总数 |
result/course/personal-个人纪录
返回字段 | 字段类型 | 说明 |
---|---|---|
finishtotal | string | 完成课程总数 |
wipetotal | string | 擦除总数 |
wrongtotal | string | 答错题总数 |
righttotal | string | 答对题总数 |
swltotal | string | 学习过的课时总数 |
klgtotal | string | 学习过的知识点总数 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/studentStatistics/studyinfo
Response
{"success":true,"data":{"course":{"personal":[{"_id":"courseid","time":0,"finishtotal":0,"wipetotal":0,"wrongtotal":0,"righttotal":0,"duration":481,"swltotal":2,"klgtotal":17}],"all":[{"_id":"courseid","time":0,"finishtotal":0,"wipetotal":0,"wrongtotal":0,"righttotal":0,"duration":481,"swltotal":2,"klgtotal":17}]}}
/statistics/student/onlineStudy
application/json
Get
参数 必选 类型 说明 student_id 是 string 学生id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
result
返回字段 | 字段类型 | 说明 |
---|---|---|
online_list | Array | 在线学习列表 |
online_list
返回字段 | 字段类型 | 说明 |
---|---|---|
data_time | int | 当前日期 |
online_time | int | 在线时间 |
prepare_time | int | 预习时间 |
review_time | int | 复习时间 |
learn_klg | int | 知识点擦除数量 |
learn_swl | int | 课时学习数 |
question | int | 答题数目 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/onlineStudy
Response
{"status":200,"result":{"today_learn_klg":0,"today_learn_swl":0,"today_question":0,"today_online_time":0,"total_learn_klg":12,"total_learn_swl":3,"total_question":15,"total_online_time":41969,
"online_list":[{"data_time":"2017-02-20T00:00:00.000Z","online_time":39664,"prepare_time":2342,"review_time":3516,"learn_klg":8,"learn_swl":2,"question":10},{"date_time":"2017-02-21T00:00:00.000Z","timetag":1487606400,"online_time":2305,"prepare_time":737,"review_time":1107,"learn_klg":4,"learn_swl":1,"question":5}]}}
/statistics/student/onlineStudy
application/json
Post
参数 说明 类型 timetag 数据对应日期时间戳 int studend_id 学生ID string student_name 学生昵称 string teacher_id 对应的学科老师id int online_time 在线时长 int prepare_time 预习时长 int review_time 复习时长 int learn_swl 已学习的课程数量 int question 已回答的知识点问题数量 int right_total 正确的回答数量 int wrong_total 错误的回答数量 int ask_question 提问的数量 int reply_question 得到回答的数量 int learn_klg 已学习的知识点数量 int wipe_klg 擦除的知识点数量 int like_klg 点赞的知识点数量 int province 所在的省 string city 所在的市 string district 所在的区 string school 所在的学校 string grade 所在的年级 string clas 所在的班级 string subject 学科 int
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/onlineStudy
Response
{"success":true}
/statistics/student/faceRanking
application/json
Post
参数 必选 类型 说明 timetag 是 int 上报时间 teacher_id 是 int 老师id teacher_name 是 string 老师名称 student_id 是 int 学生id student_name 是 string 学生名称 focus 是 int 专注度 excited 是 int 兴奋度 confused 是 int 困惑度 kind 是 string face happy 是 int 高兴度 calm 是 int 平静度 low 是 int 低落度 anger 是 float 生气 contempt 是 float 鄙视 disgust 是 float 厌恶 fear 是 float 恐惧 happiness 是 float 高兴 neutral 是 float 平静 sadness 是 float 伤心 surprise 是 float 惊喜 sn 是 string 机器码 subjct 是 string 学科 courseid 是 string 课程id swlid 是 string 课时id klgid 是 string 知识点id klgtitle 是 string 知识点标题 hour 是 int 当前播放时刻 playTime 是 int 当前播放视频的时长
200
Request
curl -X Post -H "Content-Type:application/json"
http://statistics.luobo.com/statistics/student/faceRanking
Response
{"status":200}