Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuming
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
梁海波
2016-07-15 17:06:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0cfb8524d8f24dbe3f5d343b166cf533f7e96114
0cfb8524
1 parent
2c65dfdd
Created 保存老师职称 (markdown)
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
保存老师职称.md
保存老师职称.md
0 → 100644
View file @
0cfb852
### [上一级](老师职称)
***
#### 接口说明
+
请求地址
`/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
...
...
Please
register
or
login
to post a comment