Showing
1 changed file
with
55 additions
and
0 deletions
保存老师认可度.md
0 → 100644
| 1 | +### [上一级](老师对产品认可度) | ||
| 2 | + | ||
| 3 | +*** | ||
| 4 | + | ||
| 5 | +#### 接口说明 | ||
| 6 | + | ||
| 7 | ++ 请求地址 | ||
| 8 | +`/api/teacher/has_recognitions` | ||
| 9 | ++ 请求方式 | ||
| 10 | +`POST` | ||
| 11 | + | ||
| 12 | ++ 请求参数 | ||
| 13 | + | ||
| 14 | +| 参数 | 说明 | 必选? | | ||
| 15 | +| ---- | ---- | ---- | | ||
| 16 | +| userId | 整数,不能为null | 是 | | ||
| 17 | +| recognitionIds | 整数集合不能为空 | 是 | | ||
| 18 | + | ||
| 19 | ++ 返回保存后的数据 | ||
| 20 | +```json | ||
| 21 | +{ | ||
| 22 | + "data": { | ||
| 23 | + "contents": [ | ||
| 24 | + { | ||
| 25 | + "id": 2, | ||
| 26 | + "name": "行政问题" | ||
| 27 | + }, | ||
| 28 | + { | ||
| 29 | + "id": 5, | ||
| 30 | + "name": "处于孕产期" | ||
| 31 | + }, | ||
| 32 | + { | ||
| 33 | + "id": 3, | ||
| 34 | + "name": "时机不合适" | ||
| 35 | + } | ||
| 36 | + ], | ||
| 37 | + "name": "可以进一步了解", | ||
| 38 | + "id": 3 | ||
| 39 | + } | ||
| 40 | +} | ||
| 41 | +``` | ||
| 42 | +##### 异常 | ||
| 43 | + | ||
| 44 | +- 1. 传递的id不对 | ||
| 45 | + | ||
| 46 | +返回: | ||
| 47 | + http状态码 `400` | ||
| 48 | + | ||
| 49 | + 内容 | ||
| 50 | +```json | ||
| 51 | +{ | ||
| 52 | + "message": "userId is invalid !", | ||
| 53 | + "code": "invalid_param" | ||
| 54 | +} | ||
| 55 | +``` |
-
Please register or login to post a comment