Showing
1 changed file
with
213 additions
and
0 deletions
老师课程推荐-学生端.md
0 → 100644
| 1 | +#获取推荐课程的老师列表接口 | ||
| 2 | + | ||
| 3 | +接口地址:/course/recommend/teacher | ||
| 4 | + | ||
| 5 | +GET参数:无 | ||
| 6 | + | ||
| 7 | +返回值: | ||
| 8 | + | ||
| 9 | +```json | ||
| 10 | +{ | ||
| 11 | + "owners": [ | ||
| 12 | + { | ||
| 13 | + "group_name": "testBL", | ||
| 14 | + "group_image": "http://avatars.boxfish.cn/class/-1/figure/1444642619.jpg", | ||
| 15 | + "alias": "又又", | ||
| 16 | + "username": "yanshuang", | ||
| 17 | + "id": 100, | ||
| 18 | + "figureUrl": "http://avatars.boxfish.cn/user/100/figure/1441037569.jpg", | ||
| 19 | + "nickname": "双双", | ||
| 20 | + "courseCount": 55 | ||
| 21 | + }, | ||
| 22 | + { | ||
| 23 | + "alias": "Q总", | ||
| 24 | + "username": "englishdengqian@163.com", | ||
| 25 | + "id": 21262, | ||
| 26 | + "figureUrl": "http://avatars.boxfish.cn/user/21262/figure/1418657352.jpg", | ||
| 27 | + "courseCount": 15 | ||
| 28 | + }, | ||
| 29 | + { | ||
| 30 | + "username": "minfang", | ||
| 31 | + "id": 15, | ||
| 32 | + "figureUrl": "http://avatars.boxfish.cn/user/15/figure/1435586445.jpg", | ||
| 33 | + "nickname": "minfang", | ||
| 34 | + "courseCount": 77 | ||
| 35 | + }, | ||
| 36 | + { | ||
| 37 | + "username": "19911218@qq.com", | ||
| 38 | + "id": 12937, | ||
| 39 | + "figureUrl": "http://avatars.boxfish.cn/user/12937/figure/1430969698.jpg", | ||
| 40 | + "nickname": "啊", | ||
| 41 | + "courseCount": 15 | ||
| 42 | + } | ||
| 43 | + ], | ||
| 44 | + "teacherCount": 4 | ||
| 45 | +} | ||
| 46 | +``` | ||
| 47 | + | ||
| 48 | +#获取老师推荐课程分类(按日期)接口 | ||
| 49 | + | ||
| 50 | +接口地址:/course/recommend/teacher/{teacherId}/date | ||
| 51 | + | ||
| 52 | +GET参数: | ||
| 53 | + | ||
| 54 | +|参数名 |说明 |是否必须 | | ||
| 55 | +|--------—-|------------------|--------| | ||
| 56 | +|teacherId |url参数 |是 | | ||
| 57 | +|page |页码,默认为 0 |否 | | ||
| 58 | +|size |每页数据量 默认为 9 |否 | | ||
| 59 | + | ||
| 60 | +返回值: | ||
| 61 | + | ||
| 62 | +```json | ||
| 63 | +{ | ||
| 64 | + "totalDays": 12, | ||
| 65 | + "totalPages": 3, | ||
| 66 | + "day": [ | ||
| 67 | + { | ||
| 68 | + "2015-12-25": [ | ||
| 69 | + { | ||
| 70 | + "lessonId": "68e4978c-3acc-494a-8a81-7cbd3ed6393c", | ||
| 71 | + "createAt": "2015-12-25T15:40:19.000" | ||
| 72 | + } | ||
| 73 | + ], | ||
| 74 | + "complete": false | ||
| 75 | + }, | ||
| 76 | + { | ||
| 77 | + "2015-11-07": [ | ||
| 78 | + { | ||
| 79 | + "lessonId": "b0a20b88-a868-44eb-a870-bd5faf50b2df", | ||
| 80 | + "createAt": "2015-11-07T10:31:39.000" | ||
| 81 | + } | ||
| 82 | + ], | ||
| 83 | + "complete": true | ||
| 84 | + }, | ||
| 85 | + { | ||
| 86 | + "2015-09-26": [ | ||
| 87 | + { | ||
| 88 | + "lessonId": "67366d81-2f0d-4f0e-8c82-53a905219ecb", | ||
| 89 | + "createAt": "2015-09-26T19:07:17.000" | ||
| 90 | + } | ||
| 91 | + ], | ||
| 92 | + "complete": false | ||
| 93 | + }, | ||
| 94 | + { | ||
| 95 | + "2015-09-24": [ | ||
| 96 | + { | ||
| 97 | + "lessonId": "ac86b8f7-a7ef-4d35-9469-17c5c1223109", | ||
| 98 | + "createAt": "2015-09-24T11:31:35.000" | ||
| 99 | + } | ||
| 100 | + ], | ||
| 101 | + "complete": false | ||
| 102 | + } | ||
| 103 | + ] | ||
| 104 | +} | ||
| 105 | + | ||
| 106 | +``` | ||
| 107 | + | ||
| 108 | +#根据老师id和日期获取推荐的课程接口 | ||
| 109 | + | ||
| 110 | +接口地址: /course/recommend/teacher/{teacherId}/date/{date} | ||
| 111 | + | ||
| 112 | +参数: | ||
| 113 | + | ||
| 114 | +|参数名 |说明 |是否必须 | | ||
| 115 | +|--------—-|------------------|--------| | ||
| 116 | +|teacherId |url参数 |是 | | ||
| 117 | +|date |url参数 2015-12-25 |是 | | ||
| 118 | +|page |页码,默认为 0 |否 | | ||
| 119 | +|size |每页数据量 默认为 9 |否 | | ||
| 120 | + | ||
| 121 | +返回值: | ||
| 122 | + | ||
| 123 | +```json | ||
| 124 | +{ | ||
| 125 | + "courses": [ | ||
| 126 | + { | ||
| 127 | + "id": "L3NoYXJlL3N2bi9TdG9yeSBGdW4vMDcwMS0xLuWkqumYs-W9k-epuueFp--8jOaIkeimgeWOu-WtpuagoS54bHN4", | ||
| 128 | + "name": "太阳当空照,我要去学校", | ||
| 129 | + "upstream_id": "8a2123814f751243014f8082e7dd79f6", | ||
| 130 | + "lastModified": 1421159364102, | ||
| 131 | + "type": "全面提高", | ||
| 132 | + "difficulty": "2", | ||
| 133 | + "price": 180, | ||
| 134 | + "cover": "66af30277e67e586ac1b48112eefea19" | ||
| 135 | + }, | ||
| 136 | + { | ||
| 137 | + "id": "4c9bff4e-280f-4aa7-ace7-2858ac69af24", | ||
| 138 | + "name": "Unit1 词汇:真题及模拟2", | ||
| 139 | + "upstream_id": "8a22c2e74f752750014f7f9a63af6f58", | ||
| 140 | + "lastModified": 1412056413611, | ||
| 141 | + "type": "测验", | ||
| 142 | + "difficulty": "1", | ||
| 143 | + "price": 13, | ||
| 144 | + "cover": "1db2a1b499432eb292daca38cf7e6746" | ||
| 145 | + }, | ||
| 146 | + { | ||
| 147 | + "id": "L3NoYXJlL3N2bi_mmpHlgYfkvZzkuJoyMDE1IOS6uuaVmeWIneS4gOS4i0EvMDEwLTEu56ys5Y2B5aSp77ya5ZCs5Yqb57uD5LmgICjkuIDvvIkueGxzeA", | ||
| 148 | + "name": "第十天:听力练习 (一)", | ||
| 149 | + "upstream_id": "8a2d22464f752858014f7f70acc46dfe", | ||
| 150 | + "lastModified": 1434372572583, | ||
| 151 | + "price": 156, | ||
| 152 | + "cover": "79c512eb4fbfcbaf5f14404b5b6b05a3" | ||
| 153 | + }, | ||
| 154 | + { | ||
| 155 | + "id": "L3NoYXJlL3N2bi_kurrmlZnkuIPlubTnuqfkuIogVW5pdDQvMDA1LTEu6KGo6L6-6K6t57uD77ya5L2P5a6FX-WBmuWutuWKoei_mOaYr-edoeaymeWPkT8ueGxzeA", | ||
| 156 | + "name": "表达训练:住宅_做家务还是睡沙发?", | ||
| 157 | + "upstream_id": "8a2d22464f752858014f7f8399666edc", | ||
| 158 | + "lastModified": 1409847302663, | ||
| 159 | + "cover": "a06710174a326f6ef88703db7f74c06e" | ||
| 160 | + }, | ||
| 161 | + { | ||
| 162 | + "id": "L3NoYXJlL3N2bi_nvo7lm73or63mlocyLTEvMDAxLkV2ZW5pbmcgYXQgSG9tZS54bHN4", | ||
| 163 | + "name": "Evening at Home", | ||
| 164 | + "upstream_id": "8a2d22684f752cef014f819749557b20", | ||
| 165 | + "lastModified": 1402392961771, | ||
| 166 | + "type": "全面提高", | ||
| 167 | + "difficulty": "1.5", | ||
| 168 | + "price": 552, | ||
| 169 | + "cover": "73dcb39a42bbfd6b3cc83b2569cf4bce" | ||
| 170 | + }, | ||
| 171 | + { | ||
| 172 | + "id": "L3NoYXJlL3N2bi_kurrmlZnkuIPkuIogVW5pdDHmi5PlsZUvMDA5LuWQrOWKm-mYheivuy3liJ3mrKHop4HpnaLvvJrmraPluLjlnLrlkIjor6XlpoLkvZXmiZPmi5vlkbzvvJ8ueGxzeA", | ||
| 173 | + "name": "听力阅读-初次见面:正常场合该如何打招呼?", | ||
| 174 | + "upstream_id": "8af5abef4f751434014f7f7e907676ae", | ||
| 175 | + "lastModified": 1445001146138, | ||
| 176 | + "type": "全面提高", | ||
| 177 | + "difficulty": "2", | ||
| 178 | + "price": 132, | ||
| 179 | + "cover": "3070efea30636ef114fffb08a822dd4e" | ||
| 180 | + }, | ||
| 181 | + { | ||
| 182 | + "id": "L3NoYXJlL3N2bi_kurrmlZnkuIPlubTnuqfkuIogVW5pdDQvMDAyLTEu5ZCs5Yqb57uD5Lmg77ya55yf6aKYLnhsc3g", | ||
| 183 | + "name": "听力练习:真题", | ||
| 184 | + "upstream_id": "8af5abef4f751434014f7f863adf778a", | ||
| 185 | + "lastModified": 1409847323633, | ||
| 186 | + "type": "听力测验", | ||
| 187 | + "difficulty": "1", | ||
| 188 | + "price": 132, | ||
| 189 | + "cover": "2f87c2cc2d7daa8ed2522308da9492b0" | ||
| 190 | + }, | ||
| 191 | + { | ||
| 192 | + "id": "L3NoYXJlL3N2bi_kurrmlZnkuIPkuIogVW5pdDUvMDAzLTIu5ZCs5Yqb57uD5Lmg77ya5o-Q6auYLnhsc3g", | ||
| 193 | + "name": "听力练习:提高", | ||
| 194 | + "upstream_id": "8af5abef4f751434014f7f9942317834", | ||
| 195 | + "lastModified": 1440309625837, | ||
| 196 | + "type": "听力", | ||
| 197 | + "difficulty": "3", | ||
| 198 | + "price": 36, | ||
| 199 | + "cover": "00c347e62ffdece21bd11a17fad72924" | ||
| 200 | + }, | ||
| 201 | + { | ||
| 202 | + "id": "4c9bff4e-280f-4aa7-ace7-2858ac69af24", | ||
| 203 | + "name": "Unit1 词汇:真题及模拟2", | ||
| 204 | + "upstream_id": "8af5abef4f751434014f7f9a62fa78a2", | ||
| 205 | + "lastModified": 1412056413611, | ||
| 206 | + "type": "测验", | ||
| 207 | + "difficulty": "1", | ||
| 208 | + "price": 13, | ||
| 209 | + "cover": "1db2a1b499432eb292daca38cf7e6746" | ||
| 210 | + } | ||
| 211 | + ] | ||
| 212 | +} | ||
| 213 | +``` |
-
Please register or login to post a comment