梁海波

Created 保存老师职称 (markdown)

### [上一级](老师职称)
***
#### 接口说明
+ 请求地址
`/api/teacher/has_positions`
+ 请求方式
`POST`
+ 请求参数
| 参数 | 说明 | 必选? |
| ---- | ---- | ---- |
| userId | 用户id,整数,不能为null | 是 |
| positionIds | 职称id,整数数组不能为空 | 是 |
+ 返回保存后的数据
```json
{
"data": [
{
"id": 2,
"name": "备课组长"
},
{
"id": 3,
"name": "年级组长"
},
{
"id": 5,
"name": "骨干教师"
}
]
}
```
##### 异常
- 1. 传递的id不对
返回:
http状态码 `400`
内容
```json
{
"message": "teacher position not found [positionId=100]",
"code": "invalid_param"
}
```
\ No newline at end of file
... ...