Showing
1 changed file
with
4 additions
and
1 deletions
1 | ###接口地址 | 1 | ###接口地址 |
2 | 2 | ||
3 | -> /teacher/preference/getting | 3 | +> /teacher/preference |
4 | 4 | ||
5 | ###请求方式 | 5 | ###请求方式 |
6 | 6 | ||
@@ -12,6 +12,7 @@ | @@ -12,6 +12,7 @@ | ||
12 | 12 | ||
13 | ###返回值 | 13 | ###返回值 |
14 | ######获取成功 | 14 | ######获取成功 |
15 | +> #####状态吗:200 | ||
15 | ```json | 16 | ```json |
16 | { | 17 | { |
17 | "id": 5, | 18 | "id": 5, |
@@ -25,12 +26,14 @@ | @@ -25,12 +26,14 @@ | ||
25 | 26 | ||
26 | ``` | 27 | ``` |
27 | ######获取失败情况1 | 28 | ######获取失败情况1 |
29 | +> #####状态吗:500 | ||
28 | ```json | 30 | ```json |
29 | { | 31 | { |
30 | "failed": "该用户未设置偏好" | 32 | "failed": "该用户未设置偏好" |
31 | } | 33 | } |
32 | ``` | 34 | ``` |
33 | ######获取失败情况2 | 35 | ######获取失败情况2 |
36 | +> #####状态吗:500 | ||
34 | ```json | 37 | ```json |
35 | { | 38 | { |
36 | "failed":"偏好获取失败,存在异常" | 39 | "failed":"偏好获取失败,存在异常" |
-
Please register or login to post a comment