|
|
# 公开券管理
|
|
|
---------------------
|
|
|
|
|
|
## 新增公开券
|
|
|
|
|
|
> 接口名:`/pCouponSn/createCouponSn`
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|couponId|int|2|券id|
|
|
|
|num|int|100|券数量|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
请求样例:
|
|
|
{
|
|
|
"couponId":123123,
|
|
|
"num":12
|
|
|
}
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "公开券生成成功"
|
|
|
}
|
|
|
异常返回:
|
|
|
{
|
|
|
"code": 405,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "公开券生成失败"
|
|
|
}
|
|
|
```
|
|
|
## 查询公开券列表
|
|
|
> 接口名:`/pCouponSn/queryCouponSnList`
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|
|
|
|
|--------|----|----|----|
|
|
|
|page|int|2|第几页|
|
|
|
|size|int|10|每页条数|
|
|
|
|couponId|int|1222|公开券id|
|
|
|
|isUse|string|Y|是否发放 Y是 N 否 |
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
请求样例:
|
|
|
{
|
|
|
"page": 1,
|
|
|
"size": 10,
|
|
|
"couponId":123123,
|
|
|
"isUse":"Y"
|
|
|
}
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"couponCode": "p00xcu0vx",
|
|
|
"couponId": 123123,
|
|
|
"createTime": 1463646032,
|
|
|
"createTimeStr": "2016-05-19 16:20:32",
|
|
|
"id": 4395102,
|
|
|
"isUse": "已发放"
|
|
|
},
|
|
|
{
|
|
|
"couponCode": "p1c2yccqr",
|
|
|
"couponId": 123123,
|
|
|
"createTime": 1463646032,
|
|
|
"createTimeStr": "2016-05-19 16:20:32",
|
|
|
"id": 4395098,
|
|
|
"isUse": "已发放"
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 10,
|
|
|
"total": 0,
|
|
|
"totalPage": 2
|
|
|
},
|
|
|
"md5": "9b8c6ecc35f66ec5e513dd8887e0c97c",
|
|
|
"message": "查询公开券记录信息成功"
|
|
|
}
|
|
|
异常返回:
|
|
|
{
|
|
|
"code": 405,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "查询公开券记录信息失败"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|