Showing
1 changed file
with
51 additions
and
0 deletions
保存老师职称.md
0 → 100644
1 | +### [上一级](老师职称) | ||
2 | + | ||
3 | +*** | ||
4 | + | ||
5 | +#### 接口说明 | ||
6 | + | ||
7 | ++ 请求地址 | ||
8 | +`/api/teacher/has_positions` | ||
9 | ++ 请求方式 | ||
10 | +`POST` | ||
11 | + | ||
12 | ++ 请求参数 | ||
13 | + | ||
14 | +| 参数 | 说明 | 必选? | | ||
15 | +| ---- | ---- | ---- | | ||
16 | +| userId | 用户id,整数,不能为null | 是 | | ||
17 | +| positionIds | 职称id,整数数组不能为空 | 是 | | ||
18 | + | ||
19 | ++ 返回保存后的数据 | ||
20 | +```json | ||
21 | +{ | ||
22 | + "data": [ | ||
23 | + { | ||
24 | + "id": 2, | ||
25 | + "name": "备课组长" | ||
26 | + }, | ||
27 | + { | ||
28 | + "id": 3, | ||
29 | + "name": "年级组长" | ||
30 | + }, | ||
31 | + { | ||
32 | + "id": 5, | ||
33 | + "name": "骨干教师" | ||
34 | + } | ||
35 | + ] | ||
36 | +} | ||
37 | +``` | ||
38 | +##### 异常 | ||
39 | + | ||
40 | +- 1. 传递的id不对 | ||
41 | + | ||
42 | +返回: | ||
43 | + http状态码 `400` | ||
44 | + | ||
45 | + 内容 | ||
46 | +```json | ||
47 | +{ | ||
48 | + "message": "teacher position not found [positionId=100]", | ||
49 | + "code": "invalid_param" | ||
50 | +} | ||
51 | +``` |
-
Please register or login to post a comment