Showing
1 changed file
with
147 additions
and
0 deletions
1 | +品牌优惠券接口服务定义 | ||
2 | +--------------------- | ||
3 | +相关数据表:yhb_promotion.brand_coupons | ||
4 | + | ||
5 | +## 添加品牌优惠券接口 | ||
6 | + | ||
7 | +> 接口名:brandCoupon/add | ||
8 | + | ||
9 | +### 入参 | ||
10 | + | ||
11 | +------------------------- | ||
12 | +|属性名称|类型|可否为空|例子|说明| | ||
13 | +|--------|----|--------|----|----| | ||
14 | +|brandId|int|否|949|品牌ID| | ||
15 | +|brandName|string|否|004|品牌名称| | ||
16 | +|couponsId|int|否|18|优惠券ID| | ||
17 | +|status|int|否|1|状态| | ||
18 | +--------------------- | ||
19 | + | ||
20 | +### 返回 | ||
21 | + | ||
22 | +``` json | ||
23 | +{ | ||
24 | + "code": 200, | ||
25 | + "data": [], | ||
26 | + "md5": "d751713988987e9331980363e24189ce", | ||
27 | + "message": "添加成功." | ||
28 | +} | ||
29 | + | ||
30 | +``` | ||
31 | + | ||
32 | +## 根据ID查询品牌优惠券接口 | ||
33 | + | ||
34 | +> 接口名:brandCoupon/queryById | ||
35 | + | ||
36 | +### 入参 | ||
37 | + | ||
38 | +------------------------- | ||
39 | +|属性名称|类型|可否为空|例子|说明| | ||
40 | +|--------|----|--------|----|----| | ||
41 | +|id|int|否|70|品牌优惠券记录ID| | ||
42 | +--------------------- | ||
43 | + | ||
44 | +### 返回 | ||
45 | + | ||
46 | +``` json | ||
47 | +{ | ||
48 | + "code": 200, | ||
49 | + "data": { | ||
50 | + "brandId": 1, | ||
51 | + "brandName": "004", | ||
52 | + "couponsId": 15, | ||
53 | + "createPersonId": 0, | ||
54 | + "createPersonName": "", | ||
55 | + "createTime": 1464156770, | ||
56 | + "id": 70, | ||
57 | + "status": 1, | ||
58 | + "updatePersonId": 0, | ||
59 | + "updatePersonName": " ", | ||
60 | + "updateTime": 0 | ||
61 | + }, | ||
62 | + "md5": "5b21db9834247309d36907c80bb215da", | ||
63 | + "message": "操作成功" | ||
64 | +} | ||
65 | + | ||
66 | +``` | ||
67 | + | ||
68 | +## 更新品牌优惠券接口 | ||
69 | + | ||
70 | +> 接口名:brandCoupon/update | ||
71 | + | ||
72 | +### 入参 | ||
73 | + | ||
74 | +------------------------- | ||
75 | +|属性名称|类型|可否为空|例子|说明| | ||
76 | +|--------|----|--------|----|----| | ||
77 | +|id|int|否|70|品牌优惠券记录ID| | ||
78 | +|brandId|int|否|949|品牌ID| | ||
79 | +|brandName|string|否|004|品牌名称| | ||
80 | +|couponsId|int|否|18|优惠券ID| | ||
81 | +|status|int|否|1|状态| | ||
82 | +--------------------- | ||
83 | + | ||
84 | +### 返回 | ||
85 | + | ||
86 | +``` json | ||
87 | +{ | ||
88 | + "code": 200, | ||
89 | + "data": [], | ||
90 | + "md5": "d751713988987e9331980363e24189ce", | ||
91 | + "message": "更新成功." | ||
92 | +} | ||
93 | + | ||
94 | +``` | ||
95 | + | ||
96 | +## 查询品牌优惠券分页列表 | ||
97 | + | ||
98 | +> 接口名:brandCoupon/queryList | ||
99 | + | ||
100 | +### 入参 | ||
101 | + | ||
102 | +------------------------- | ||
103 | +|属性名称|类型|可否为空|例子|说明| | ||
104 | +|--------|----|--------|----|----| | ||
105 | +|brandName|string|是|004|品牌名称| | ||
106 | +|status|int|是|1|状态| | ||
107 | +|couponsId|int|是|15|优惠券ID| | ||
108 | +|page|int|是|2|页码,默认1| | ||
109 | +|size|int|是|2|每页显示数量,默认10| | ||
110 | +--------------------- | ||
111 | + | ||
112 | +### 返回 | ||
113 | + | ||
114 | +``` json | ||
115 | +{ | ||
116 | + "code": 200, | ||
117 | + "data": { | ||
118 | + "list": [ | ||
119 | + { | ||
120 | + "brandName": "004", | ||
121 | + "couponsId": 15, | ||
122 | + "createTime": 1464156770, | ||
123 | + "id": 70, | ||
124 | + "status": 2, | ||
125 | + "updateTime": 1464157315 | ||
126 | + }, | ||
127 | + { | ||
128 | + "brandName": "004", | ||
129 | + "couponsId": 12426, | ||
130 | + "createTime": 1459222650, | ||
131 | + "id": 67, | ||
132 | + "status": 2, | ||
133 | + "updateTime": 0 | ||
134 | + } | ||
135 | + ], | ||
136 | + "page": 1, | ||
137 | + "size": 2, | ||
138 | + "total": 66, | ||
139 | + "totalPage": 33 | ||
140 | + }, | ||
141 | + "md5": "688dfacbf6477dd7d3812ea7d5db4a32", | ||
142 | + "message": "操作成功" | ||
143 | +} | ||
144 | + | ||
145 | +``` | ||
146 | + | ||
147 | + |
-
Please register or login to post a comment