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-11-17 09:47:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
416563ece7912d7f7883fc94cd0dc1767e90d4f0
416563ec
1 parent
5746f610
Updated 退回群红包 (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
5 deletions
退回群红包.md
退回群红包.md
View file @
416563e
...
...
@@ -5,20 +5,78 @@
#### 接口说明
+
请求地址
`/api/t
eacher/has_red_envelopes
`
`/api/t
c/big/red_envelope/back
`
+
请求方式
`POST`
+
请求示例
http://localhost:9107/api/tc/big/red_envelope/back?size=2&page=0
body:
```
json
{
"relId"
:
119
,
"sum"
:
"10123"
}
```
+
请求参数
| 参数 | 说明 | 必选? |
| ---- | ---- | ---- |
| sum | 红包金额,单位分,整数,不能为空 | 是 |
| relId | 群红包的id,整数,不能为空 | 是 |
| sum | 红包金额,单位分,整数,不能为空,请求body | 是 |
| relId | 群红包的id,整数,不能为空,请求body | 是 |
| page | 页码,0开始,默认是0,请求参数 | 否 |
| size | 每页数量,默认是20,请求参数 | 否 |
+
返回
保存后的
数据
+
返回数据
```
json
{
"limitSum"
:
140000
,
--
限额
"remain"
:
130657
,
--
余额
"logs"
:
{
--
流水日志
"content"
:
[
{
"id"
:
119
,
--
id,退回红包时需要传的id
"time"
:
"2016-11-16 18:37:31"
,
--
时间
"name"
:
"qun'fa群发ce'sh群发测试 hong'bao红包 "
,
--
群红包描述
"sum"
:
10000
,
--
金额,单位分
"backs"
:
[
--
退回红包记录,可能有多次,所以是列表
{
"id"
:
121
,
"time"
:
"2016-11-17 09:36:14"
,
--
退回时间
"name"
:
"退回"
,
--
名字一律都是叫“退回”
"sum"
:
10123
,
--
退回金额,单位分
"backs"
:
null
}
]
},
{
"id"
:
118
,
"time"
:
"2016-11-16 18:37:27"
,
"name"
:
"qun'fa群发ce'sh群发测试 hong'bao红包 "
,
"sum"
:
10000
,
"backs"
:
[]
}
],
"last"
:
false
,
--
true是最后一页;false不是最后一页
"totalElements"
:
22
,
--
总记录数
"totalPages"
:
11
,
--
总页数
"size"
:
2
,
--
每页记录数
"number"
:
0
,
--
页码,从0开始
"sort"
:
[
{
"direction"
:
"DESC"
,
"property"
:
"createAt"
,
"ignoreCase"
:
false
,
"nullHandling"
:
"NATIVE"
,
"ascending"
:
false
}
],
"first"
:
true
,
"numberOfElements"
:
2
--
当前页实际记录数
}
}
```
\ No newline at end of file
...
...
Please
register
or
login
to post a comment