Showing
1 changed file
with
39 additions
and
0 deletions
教师偏好获取接口.md
0 → 100644
1 | +###接口地址 | ||
2 | + | ||
3 | +> /teacher_preference/getting | ||
4 | + | ||
5 | +###请求方式 | ||
6 | + | ||
7 | +> get请求 | ||
8 | + | ||
9 | +###请求参数 | ||
10 | + | ||
11 | +> 无参数 | ||
12 | + | ||
13 | +###返回值 | ||
14 | +######获取成功 | ||
15 | +```json | ||
16 | +{ | ||
17 | + "success": { | ||
18 | + "id": 5, | ||
19 | + "userId": 5, | ||
20 | + "fitGrade": "初一", | ||
21 | + "publication": "人教2012版", | ||
22 | + "book": "七上", | ||
23 | + "difficulty": "1,2,3", | ||
24 | + "updateTime": "2015-07-21T11:45:32.299+0000" | ||
25 | + } | ||
26 | +} | ||
27 | +``` | ||
28 | +######获取失败情况1 | ||
29 | +```json | ||
30 | +{ | ||
31 | + "failed": "该用户未设置偏好" | ||
32 | +} | ||
33 | +``` | ||
34 | +######获取失败情况2 | ||
35 | +```json | ||
36 | +{ | ||
37 | +"failed":"偏好获取失败,存在异常" | ||
38 | +} | ||
39 | +``` |
-
Please register or login to post a comment