Showing
1 changed file
with
40 additions
and
0 deletions
获取老师职称.md
0 → 100644
| 1 | +### [上一级](老师职称) | ||
| 2 | + | ||
| 3 | +*** | ||
| 4 | + | ||
| 5 | +#### 接口说明 | ||
| 6 | + | ||
| 7 | ++ 请求地址 | ||
| 8 | +`/api/teacher/has_positions/user/{user_id}` | ||
| 9 | ++ 请求方式 | ||
| 10 | +`GET` | ||
| 11 | + | ||
| 12 | ++ 请求参数 | ||
| 13 | +`无` | ||
| 14 | + | ||
| 15 | ++ 返回数据 | ||
| 16 | +```json | ||
| 17 | +{ | ||
| 18 | + "data": [ | ||
| 19 | + { | ||
| 20 | + "id": 1, | ||
| 21 | + "name": "普通教师" | ||
| 22 | + }, | ||
| 23 | + { | ||
| 24 | + "id": 2, | ||
| 25 | + "name": "备课组长" | ||
| 26 | + }, | ||
| 27 | + { | ||
| 28 | + "id": 3, | ||
| 29 | + "name": "年级组长" | ||
| 30 | + } | ||
| 31 | + ] | ||
| 32 | +} | ||
| 33 | +``` | ||
| 34 | ++ 无数据时返回 | ||
| 35 | +```json | ||
| 36 | +{ | ||
| 37 | + "message": "没有数据", | ||
| 38 | + "code": "not_found" | ||
| 39 | +} | ||
| 40 | +``` |
-
Please register or login to post a comment