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 18:04:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
58c40e43a7f92ba181773efdb01f9f74754d93f2
58c40e43
1 parent
c966ec7e
Created 保存老师红包 (markdown)
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
0 deletions
保存老师红包.md
保存老师红包.md
0 → 100644
View file @
58c40e4
### [上一级](老师红包)
***
#### 接口说明
+
请求地址
`/api/teacher/has_red_envelopes`
+
请求方式
`POST`
+
请求参数
| 参数 | 说明 | 必选? |
| ---- | ---- | ---- |
| userId | 用户id,整数,不能为null | 是 |
| redEnvelopeValue | 红包金额,单位分,整数,不能为空 | 是 |
| redEnvelopeId | 红包id,整数,不能为空 | 是 |
+
返回保存后的数据
```
json
{
"data"
:
[
{
"name"
:
"星级教师"
,
"value"
:
5000
},
{
"name"
:
"推荐"
,
"value"
:
5000
},
{
"name"
:
"推荐"
,
"value"
:
5000
},
{
"name"
:
"推荐"
,
"value"
:
5000
},
{
"name"
:
"推荐"
,
"value"
:
5000
},
{
"name"
:
"推荐"
,
"value"
:
5000
}
]
}
```
##### 异常
-
1. 传递的id不对
返回:
http状态码
`400`
内容
```
json
{
"message"
:
"userId is invalid !"
,
"code"
:
"invalid_param"
}
```
-
2. 重复发星级教师红包
返回
http状态码
`409`
内容
```
json
{
"message"
:
"你已经发过一个【星级教师】红包了!"
,
"code"
:
"duplicated"
}
```
\ No newline at end of file
...
...
Please
register
or
login
to post a comment