Showing
1 changed file
with
91 additions
and
0 deletions
教师上传本课讲授词句及评星情况.md
0 → 100644
| 1 | +### 提交评星情况 | ||
| 2 | + | ||
| 3 | +用户进入课程统计页面时调用以下接口提交评星情况,或在程序从前台进入后台时,提交缓存在本地的数据。 | ||
| 4 | + | ||
| 5 | +**接口地址:** | ||
| 6 | + | ||
| 7 | +`/user/gem/push` | ||
| 8 | + | ||
| 9 | +**参数:json字符串** | ||
| 10 | + | ||
| 11 | + [{ | ||
| 12 | + "createTime":1445929159482, | ||
| 13 | + "studentId":21567, | ||
| 14 | + "number":3, | ||
| 15 | + "teacherId":7548 | ||
| 16 | + }, | ||
| 17 | + { | ||
| 18 | + "createTime":1445929159499, | ||
| 19 | + "studentId":20704, | ||
| 20 | + "number":3, | ||
| 21 | + "teacherId":7548 | ||
| 22 | + }] | ||
| 23 | + | ||
| 24 | +**参数含义** | ||
| 25 | + | ||
| 26 | + createTime:时间戳 | ||
| 27 | + studentId:学生id | ||
| 28 | + number:打星数量 | ||
| 29 | + teacherId:教师id | ||
| 30 | + | ||
| 31 | +**header:** | ||
| 32 | + | ||
| 33 | + `Request-ID 传唯一id,防重复提交` | ||
| 34 | + | ||
| 35 | +**返回值:无** | ||
| 36 | + | ||
| 37 | + 上传成功后删除本地缓存的同Request-ID数据记录,失败时缓存本次提交数据,程序从前台进入后台时提交本地缓存的数据。 | ||
| 38 | + | ||
| 39 | + | ||
| 40 | +### 提交本课词句统计 | ||
| 41 | + | ||
| 42 | +只在教师选班的情况下统计本课讲授词句,核心词页面显示即记录单词和例句, | ||
| 43 | +对比页面的对比词发音或教师主动显示单词/例句时记录。 | ||
| 44 | +用户在课程统计页面点击保存按钮时调用以下接口提交数据,或在程序从前台进入后台时,提交缓存在本地的数据。 | ||
| 45 | + | ||
| 46 | +**接口地址:** | ||
| 47 | + | ||
| 48 | +`/event/statistic/lesson` | ||
| 49 | + | ||
| 50 | +**参数:json字符串** | ||
| 51 | + | ||
| 52 | + [ | ||
| 53 | + { | ||
| 54 | + "groupId":9469, | ||
| 55 | + "createTime":1445929179441, | ||
| 56 | + "groupName":"4", | ||
| 57 | + "lesson":"L3NoYXJlL3N2bi_kuK3nuqflkKzor7sxLzAwMC7oi7Hpm4TmmK_mgI7moLfngrzmiJDnmoQxLnhsc3g", | ||
| 58 | + "userId":7548, | ||
| 59 | + "learning":[ | ||
| 60 | + { | ||
| 61 | + "phrase":"A contented person is happy with his status quo.", | ||
| 62 | + "word":"status quo" | ||
| 63 | + }, | ||
| 64 | + { | ||
| 65 | + "phrase":"an adventure", | ||
| 66 | + "word":"adventure" | ||
| 67 | + }, | ||
| 68 | + { | ||
| 69 | + "phrase":"a mysterious night", | ||
| 70 | + "word":"mysterious" | ||
| 71 | + } | ||
| 72 | + ] | ||
| 73 | + } | ||
| 74 | + ] | ||
| 75 | + | ||
| 76 | + | ||
| 77 | +**参数含义** | ||
| 78 | + | ||
| 79 | + groupId:班级id | ||
| 80 | + createTime:时间戳 | ||
| 81 | + groupName:班级名 | ||
| 82 | + lesson:课程id | ||
| 83 | + userId:教师id | ||
| 84 | + learning:本课讲授的词句 | ||
| 85 | + phrase:例句 | ||
| 86 | + word:单词 | ||
| 87 | + | ||
| 88 | + | ||
| 89 | +**返回值:无** | ||
| 90 | + | ||
| 91 | + 上传成功后删除本地缓存的同Request-ID数据记录,失败时缓存本次提交数据,程序从前台进入后台时提交本地缓存的数据。 |
-
Please register or login to post a comment