Showing
1 changed file
with
100 additions
and
0 deletions
inferface-document/promotion/p_coupons_sn.md
0 → 100644
1 | +# 公开券管理 | ||
2 | +--------------------- | ||
3 | + | ||
4 | +## 新增公开券 | ||
5 | + | ||
6 | +> 接口名:`/pCouponSn/createCouponSn` | ||
7 | +### 入参 | ||
8 | + | ||
9 | +------------------------- | ||
10 | +|属性名称|类型|例子|说明| | ||
11 | +|--------|----|----|----| | ||
12 | +|couponId|int|2|券id| | ||
13 | +|num|int|100|券数量| | ||
14 | +--------------------- | ||
15 | + | ||
16 | + | ||
17 | +### 返回 | ||
18 | + | ||
19 | +``` json | ||
20 | +请求样例: | ||
21 | +{ | ||
22 | +"couponId":123123, | ||
23 | +"num":12 | ||
24 | +} | ||
25 | +正常返回: | ||
26 | +{ | ||
27 | + "code": 200, | ||
28 | + "data": [], | ||
29 | + "md5": "d751713988987e9331980363e24189ce", | ||
30 | + "message": "公开券生成成功" | ||
31 | +} | ||
32 | +异常返回: | ||
33 | +{ | ||
34 | + "code": 405, | ||
35 | + "data": [], | ||
36 | + "md5": "d751713988987e9331980363e24189ce", | ||
37 | + "message": "公开券生成失败" | ||
38 | +} | ||
39 | +``` | ||
40 | +## 查询公开券列表 | ||
41 | +> 接口名:`/pCouponSn/queryCouponSnList` | ||
42 | + | ||
43 | +------------------------- | ||
44 | +|属性名称|类型|例子|说明| | ||
45 | +|--------|----|----|----| | ||
46 | +|page|int|2|第几页| | ||
47 | +|size|int|10|每页条数| | ||
48 | +|couponId|int|1222|公开券id| | ||
49 | +|isUse|string|Y|是否发放 Y是 N 否 | | ||
50 | +--------------------- | ||
51 | + | ||
52 | +### 返回 | ||
53 | + | ||
54 | +``` json | ||
55 | +请求样例: | ||
56 | +{ | ||
57 | + "page": 1, | ||
58 | + "size": 10, | ||
59 | +"couponId":123123, | ||
60 | +"isUse":"Y" | ||
61 | +} | ||
62 | +正常返回: | ||
63 | +{ | ||
64 | + "code": 200, | ||
65 | + "data": { | ||
66 | + "list": [ | ||
67 | + { | ||
68 | + "couponCode": "p00xcu0vx", | ||
69 | + "couponId": 123123, | ||
70 | + "createTime": 1463646032, | ||
71 | + "createTimeStr": "2016-05-19 16:20:32", | ||
72 | + "id": 4395102, | ||
73 | + "isUse": "已发放" | ||
74 | + }, | ||
75 | + { | ||
76 | + "couponCode": "p1c2yccqr", | ||
77 | + "couponId": 123123, | ||
78 | + "createTime": 1463646032, | ||
79 | + "createTimeStr": "2016-05-19 16:20:32", | ||
80 | + "id": 4395098, | ||
81 | + "isUse": "已发放" | ||
82 | + } | ||
83 | + ], | ||
84 | + "page": 1, | ||
85 | + "size": 10, | ||
86 | + "total": 0, | ||
87 | + "totalPage": 2 | ||
88 | + }, | ||
89 | + "md5": "9b8c6ecc35f66ec5e513dd8887e0c97c", | ||
90 | + "message": "查询公开券记录信息成功" | ||
91 | +} | ||
92 | +异常返回: | ||
93 | +{ | ||
94 | + "code": 405, | ||
95 | + "data": [], | ||
96 | + "md5": "d751713988987e9331980363e24189ce", | ||
97 | + "message": "查询公开券记录信息失败" | ||
98 | +} | ||
99 | + | ||
100 | +``` |
-
Please register or login to post a comment