@sewise-dev
2018-04-27T01:39:22.000000Z
字数 31584
阅读 656
大数据
编号 | 版本 | 说明 | 作者 | 日期 |
---|---|---|---|---|
1 | v1.0 | 初始版本 | carson | 2017-2-23 |
2 | v1.1 | 初始版本 | jacky | 2017-9-5 |
/statistics/user/studentInfo
application/json
Get
参数 必选 类型 说明 student_id 是 string 学生id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/user/studentInfo
Response
{"status":200,"result":{"name":"胡鑫磊","lubosid":"e50daa50dbcf408a84d1107a381b09b5","sex":2,"province":"广东省","city":"深圳市","school":"深圳市福田中学","district":"福田区","grade":"1","clas":"1"}}
/statistics/user/teacherinfo
application/json
Get
参数 必选 类型 说明 teacher_id 是 string 老师id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/user/teacherinfo
Response
{"status":200,"result":{"name":"邹之玉","subject":101,"lubosid":"e50daa50dbcf408a84d1107a381b09b5","sex":1,"level":1,"province":"广东省","city":"深圳市","school":"深圳市福田中学","district":"福田区","grade":"1","clas":"1"}}
/statistics/user/userinfo
application/json
Get
参数 必选 类型 说明 是 string 邮箱 password 是 string 密码
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/user/userinfo
Response
{"status":200,"result":{"username":"市代表","org_level":"city","org_name":["广东省","深圳市"]}}
/statistics/cityList
application/json
Get
参数 必选 类型 说明 province 是 string 省
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/cityList
Response
{"status":200,"result":[{"city":"广州市"},{"city":"深圳市"}]}
/statistics/districtList
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/districtList
Response
{"status":200,"result":[{"district":"南山区"},{"district":"福田区"}]}
/statistics/schoolList
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/schoolList
Response
{"status":200,"result":[{"school":"深圳外国语学校"},{"school":"深圳实验中学"}]}
/statistics/gradeList
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/gradeList
Response
{"status":200,"result":[{"grade":"2"}]}
/statistics/clasList
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2")
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/clasList
Response
{"status":200,"result":[{"clas":"2"},{"clas":"3"},{"clas":"4"},{"clas":"5"}]}
/statistics/teastuList
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 年级(如:"1") clas 是 string 班级(如:"1")
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
teacher | Array | 返回结果 |
student | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/teastuList
Response
{"teacher":[{"_id":"07550973","value":{"name":"邹之玉"}}],"student":[{"_id":"20151010922","value":{"name":"萧擎宇"}},{"_id":"20151011088","value":{"name":"胡鑫磊"}}]}
/statistics/student/onlineStudy
application/json
Get
参数 必选 类型 说明 student_id 是 string 学生id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
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}]}}
/commonStatistics/studyScoreStatic
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 年级(如:"2") clas 是 string 班级(如:"2") subject 是 int 科目(如:101) student_id 是 string 学生id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/commonStatistics/studyScoreStatic
Response
{"status":200,
"result":[[{"subject":100,"year":2013,"name":"总成绩","data":["79","79","79","79"]},{"subject":100,"year":2014,"name":"总成绩","data":["80","79","79","80"]},{"subject":100,"year":2015,"name":"总成绩","data":["79","80","80","79"]},{"subject":100,"year":2016,"name":"总成绩","data":["79","80","80","79"]},{"subject":100,"year":2017,"name":"总成绩","data":["80","79","79","79"]}],[{"subject":101,"year":2013,"name":"语文","data":["79","79","80","79"]},{"subject":101,"year":2014,"name":"语文","data":["79","80","79","79"]},{"subject":101,"year":2015,"name":"语文","data":["78","80","80","79"]},{"subject":101,"year":2016,"name":"语文","data":["79","79","80","80"]},{"subject":101,"year":2017,"name":"语文","data":["79","79","79","79"]}],[{"subject":102,"year":2013,"name":"数学","data":["79","79","78","80"]},{"subject":102,"year":2014,"name":"数学","data":["79","79","79","80"]},{"subject":102,"year":2015,"name":"数学","data":["80","80","80","79"]},{"subject":102,"year":2016,"name":"数学","data":["79","80","80","79"]},{"subject":102,"year":2017,"name":"数学","data":["80","80","80","79"]}],[{"subject":103,"year":2013,"name":"英语","data":["80","78","79","80"]},{"subject":103,"year":2014,"name":"英语","data":["80","79","80","78"]},{"subject":103,"year":2015,"name":"英语","data":["80","80","79","79"]},{"subject":103,"year":2016,"name":"英语","data":["79","80","79","79"]},{"subject":103,"year":2017,"name":"英语","data":["80","80","79","80"]}],[{"subject":104,"year":2013,"name":"物理","data":["79","78","80","80"]},{"subject":104,"year":2014,"name":"物理","data":["80","79","78","80"]},{"subject":104,"year":2015,"name":"物理","data":["79","81","80","80"]},{"subject":104,"year":2016,"name":"物理","data":["79","79","80","79"]},{"subject":104,"year":2017,"name":"物理","data":["80","79","79","79"]}],[{"subject":105,"year":2013,"name":"化学","data":["80","79","79","79"]},{"subject":105,"year":2014,"name":"化学","data":["80","79","80","80"]},{"subject":105,"year":2015,"name":"化学","data":["80","79","80","79"]},{"subject":105,"year":2016,"name":"化学","data":["80","80","80","79"]},{"subject":105,"year":2017,"name":"化学","data":["80","79","79","80"]}]]}
/commonStatistics/scoreAvgCache
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 否 string 市 district 否 string 区 school 否 string 学校,注:如果是学校,年级,班级,必须带上 grade 否 string 年级(如:"2"),注:如果是班级必须带上此字段 clas 否 string 班级(如:"2") subject 否 int 科目(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/commonStatistics/scoreAvgCache
Response
{"status":200,
"result":[[{"subject":100,"year":2013,"name":"总成绩","data":["79","79","79","79"]},{"subject":100,"year":2014,"name":"总成绩","data":["80","79","79","80"]},{"subject":100,"year":2015,"name":"总成绩","data":["79","80","80","79"]},{"subject":100,"year":2016,"name":"总成绩","data":["79","80","80","79"]},{"subject":100,"year":2017,"name":"总成绩","data":["80","79","79","79"]}],[{"subject":101,"year":2013,"name":"语文","data":["79","79","80","79"]},{"subject":101,"year":2014,"name":"语文","data":["79","80","79","79"]},{"subject":101,"year":2015,"name":"语文","data":["78","80","80","79"]},{"subject":101,"year":2016,"name":"语文","data":["79","79","80","80"]},{"subject":101,"year":2017,"name":"语文","data":["79","79","79","79"]}],[{"subject":102,"year":2013,"name":"数学","data":["79","79","78","80"]},{"subject":102,"year":2014,"name":"数学","data":["79","79","79","80"]},{"subject":102,"year":2015,"name":"数学","data":["80","80","80","79"]},{"subject":102,"year":2016,"name":"数学","data":["79","80","80","79"]},{"subject":102,"year":2017,"name":"数学","data":["80","80","80","79"]}],[{"subject":103,"year":2013,"name":"英语","data":["80","78","79","80"]},{"subject":103,"year":2014,"name":"英语","data":["80","79","80","78"]},{"subject":103,"year":2015,"name":"英语","data":["80","80","79","79"]},{"subject":103,"year":2016,"name":"英语","data":["79","80","79","79"]},{"subject":103,"year":2017,"name":"英语","data":["80","80","79","80"]}],[{"subject":104,"year":2013,"name":"物理","data":["79","78","80","80"]},{"subject":104,"year":2014,"name":"物理","data":["80","79","78","80"]},{"subject":104,"year":2015,"name":"物理","data":["79","81","80","80"]},{"subject":104,"year":2016,"name":"物理","data":["79","79","80","79"]},{"subject":104,"year":2017,"name":"物理","data":["80","79","79","79"]}],[{"subject":105,"year":2013,"name":"化学","data":["80","79","79","79"]},{"subject":105,"year":2014,"name":"化学","data":["80","79","80","80"]},{"subject":105,"year":2015,"name":"化学","data":["80","79","80","79"]},{"subject":105,"year":2016,"name":"化学","data":["80","80","80","79"]},{"subject":105,"year":2017,"name":"化学","data":["80","79","79","80"]}]]}
/provinceStatistics/province/student/onlineStudy
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/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}]}}
/provinceStatistics/province/student/subject
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/student/subject
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}]}}
/provinceStatistics/province/student/active
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/student/active
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}]}}
/provinceStatistics/province/student/scoreStudy
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/student/scoreStudy
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}]}}
/provinceStatistics/province/student/classklgUse
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/student/classklgUse
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}]}}
/provinceStatistics/province/student/sexrate
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/student/sexrate
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}]}}
/provinceStatistics/province/teacher/onlineStudy
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/teacher/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}]}}
/provinceStatistics/province/teacher/subject
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/teacher/subject
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}]}}
/provinceStatistics/province/teacher/active
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/teacher/active
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}]}}
/provinceStatistics/province/teacher/classklgUse
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/teacher/classklgUse
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}]}}
/provinceStatistics/province/teacher/level
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/province/teacher/level
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}]}}
/provinceStatistics/ranking/stuOnlineTimeRanking
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/ranking/stuOnlineTimeRanking
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}]}}
/provinceStatistics/ranking/teachOnlineTimeRanking
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/ranking/teachOnlineTimeRanking
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}]}}
/provinceStatistics/ranking/swlRankingWelcome (最受欢迎)
/provinceStatistics/ranking/swlRankingEasy (最易闯关)
/provinceStatistics/ranking/swlRankingHard (最难闯关)
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/ranking/swlRankingWelcome
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}]}}
/provinceStatistics/ranking/klgRankingWelcome (最受欢迎)
/provinceStatistics/ranking/klgRankingLike (点赞)
/provinceStatistics/ranking/klgRankingWipe (撕除率)
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/ranking/swlRankingWelcome
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}]}}
/provinceStatistics/ranking/studyScore
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/ranking/studyScore
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}]}}
/provinceStatistics/ranking/enterSchool
application/json
Get
参数 必选 类型 说明 province 是 string 省 city 是 string 市 district 是 string 区 school 是 string 学校 grade 是 string 班级(如:"2") clas 是 string 班级(如:"2") subject 是 int 班级(如:101)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | int | 返回状态码 |
result | Array | 返回结果 |
Request
curl -X Get -H "Content-Type:application/json" http://statistics.luobo.com/provinceStatistics/ranking/enterSchool
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}]}}
/studentStatistics/studyinfo
application/json
POST
参数 必选 类型 说明 student_id int 学生id 必需 clas int 年级 班级 province string 省份 必需 city string 城市 school string 学校 grade string 年级 必需 district string 区域 必需
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | boolean | true/false |
mes | string | 返回结果 |
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com/studentStatistics/studyinfo
Response
{"status":true,"mes":"xxx"}
{"status":false,"mes":"xxx"}
/studentStatistics/courseinfo
application/json
POST
参数 必选 类型 说明 student_id int 学生id 必需 clas int 年级 班级 province string 省份 必需 city string 城市 school string 学校 grade string 年级 必需 district string 区域 必需
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | boolean | true/false |
mes | string | 返回结果 |
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com/studentStatistics/studyinfo
Response
{"status":true,"mes":"xxx"}
{"status":false,"mes":"xxx"}
/studentStatistics/subject
application/json
POST
参数 必选 类型 说明 student_id int 学生id 必需 clas int 年级 班级 province string 省份 必需 city string 城市 school string 学校 grade string 年级 必需 district string 区域 必需
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | boolean | true/false |
mes | string | 返回结果 |
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com/studentStatistics/studyinfo
Response
{"status":true,"mes":"xxx"}
{"status":false,"mes":"xxx"}
/studentStatistics/active
application/json
POST
参数 必选 类型 说明 student_id int 学生id 必需 clas int 年级 班级 province string 省份 必需 city string 城市 school string 学校 grade string 年级 必需 district string 区域 必需
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | boolean | true/false |
mes | string | 返回结果 |
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com/studentStatistics/studyinfo
Response
{"status":true,"mes":"xxx"}
{"status":false,"mes":"xxx"}
/statistics/onlineCourse
application/json
GET
参数 必选 类型 说明 course_id int 课程id 必需 province string 省份 必需 city string 城市 school string 学校 district string 区域 必需
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | boolean | true/false |
mes | string | 返回结果 |
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com/statistics/onlineCourse
Response
{"status":true,"mes":"xxx"}
{"status":false,"mes":"xxx"}
/faceStatistics/searchByDay
application/json
GET
参数 类型 说明 必选 day_start_time string 开始日期 必需 day_end_time string 结束日期 必需 student_id int 学生id 非必需
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | boolean | true/false |
data | string | 返回结果,详细信息请看 data item |
data item
返回字段 | 字段类型 | 说明 |
---|---|---|
curve | array | 情绪曲线,详细信息请见 curve item |
precent | array | 情绪分布,详细信息请见 precent item |
curve item
返回字段 | 字段类型 | 说明 |
---|---|---|
time | string | 时间 |
precent | string | 百分比 |
precent item
返回字段 | 字段类型 | 说明 |
---|---|---|
type | string | 情绪,包括七种,高兴,自然,悲伤,惊喜,愤怒,厌恶,恐惧 |
precent | string | 百分比 |
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com//faceStatistics/searchByDay
Response
{"status":true,"data":{day_start_time:"",day_end_time:"",curve:[{time:xxx,precent:xxx}],precent:[{type:xxx,precent:xxx}]}}
/faceStatistics/searchByContent
application/json
GET
参数 类型 说明 必选 swlid string 课时id 非必需 klgid string 知识点id 非必需 student_id int 学生id 非必需
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | boolean | true/false |
data | string | 返回结果,详细信息请见 data item |
data item
返回字段 | 字段类型 | 说明 |
---|---|---|
curve | array | 情绪曲线,详细信息请见 curve item |
precent | array | 情绪分布,详细信息请见 precent item |
curve item
返回字段 | 字段类型 | 说明 |
---|---|---|
time | string | 时间 |
precent | string | 百分比 |
precent item
返回字段 | 字段类型 | 说明 |
---|---|---|
type | string | 情绪,包括七种,高兴,自然,悲伤,惊喜,愤怒,厌恶,恐惧 |
precent | string | 百分比 |
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com//faceStatistics/searchByContent
Response
{"status":true,klglist:[{id:xxx}],studentlist:[{id:xx,name:xxx}],"data":{curve:[{time:xxx,precent:xxx}],precent:[{type:xxx,precent:xxx}]}}
/faceStatistics/searchByHour
application/json
GET
参数 必选 类型 说明 day_start_time string 开始日期 非必需 day_end_time string 结束日期 非必需 student_id int 学生id 非必需
200
返回字段 | 字段类型 | 说明 |
---|---|---|
status | boolean | true/false |
data | string | 返回结果 |
data
返回字段 | 字段类型 | 说明 |
---|---|---|
curve | array | 情绪曲线 |
precent | array | 情绪分布 |
Request
curl -X POST -H "Content-Type:application/json" http://statistics.luobo.com//faceStatistics/searchByContent
Response
{"status":true,"data":{day_start_time:"",day_end_time:"",curve:[{key:xxx,value:xxx}],precent:[{key:xxx,value:xxx}]}}
{"status":false,"data":{}}