Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop
Showing
1 changed file
with
78 additions
and
1 deletions
1 | 优惠券活动接口服务定义 | 1 | 优惠券活动接口服务定义 |
2 | --------------------- | 2 | --------------------- |
3 | +相关数据表:yh_events.activity、yh_events.activity_configuration | ||
3 | 4 | ||
4 | ## 添加优惠券活动接口 | 5 | ## 添加优惠券活动接口 |
5 | 6 | ||
6 | > 接口名:couponActivity/add | 7 | > 接口名:couponActivity/add |
7 | -> 相关数据表:yh_events.activity、yh_events.activity_configuration | ||
8 | 8 | ||
9 | ### 入参 | 9 | ### 入参 |
10 | 10 | ||
@@ -39,3 +39,80 @@ | @@ -39,3 +39,80 @@ | ||
39 | 39 | ||
40 | ``` | 40 | ``` |
41 | 41 | ||
42 | +## 根据ID查询优惠券活动接口 | ||
43 | + | ||
44 | +> 接口名:couponActivity/queryById | ||
45 | + | ||
46 | +### 入参 | ||
47 | + | ||
48 | +------------------------- | ||
49 | +|属性名称|类型|可否为空|例子|说明| | ||
50 | +|--------|----|--------|----|----| | ||
51 | +|id|int|否|602|优惠券活动ID| | ||
52 | +--------------------- | ||
53 | + | ||
54 | +### 返回 | ||
55 | + | ||
56 | +``` json | ||
57 | +{ | ||
58 | + "code": 200, | ||
59 | + "data": { | ||
60 | + "actName": "六月大促", | ||
61 | + "actUrl": "", | ||
62 | + "activityType": 0, | ||
63 | + "bgImageUrl": "http://baidu.com/pic", | ||
64 | + "couponId": "", | ||
65 | + "endTime": 1466159220, | ||
66 | + "id": 602, | ||
67 | + "instructions": "", | ||
68 | + "isNewUser": 0, | ||
69 | + "isVerify": "N", | ||
70 | + "shareDescribe": "告别单身狗!恋爱手册之约会大作战", | ||
71 | + "startTime": 1463480820 | ||
72 | + }, | ||
73 | + "md5": "fd78218ccf947842103f377310483a85", | ||
74 | + "message": "操作成功" | ||
75 | +} | ||
76 | + | ||
77 | +``` | ||
78 | + | ||
79 | +## 更新优惠券活动接口 | ||
80 | + | ||
81 | +> 接口名:couponActivity/update | ||
82 | + | ||
83 | +### 入参 | ||
84 | + | ||
85 | +------------------------- | ||
86 | +|属性名称|类型|可否为空|例子|说明| | ||
87 | +|--------|----|--------|----|----| | ||
88 | +|id|int|否|602|优惠券活动ID| | ||
89 | +|actName|String|否|六月大促|活动名称| | ||
90 | +|activityType|int|否|1|活动类型1:普通活动 2:APP活动| | ||
91 | +|actUrl|string|是|http://baidu.com|活动地址| | ||
92 | +|startTime|int|是|1463480820|活动起始时间| | ||
93 | +|endTime|int|是|1466159220|活动结束时间| | ||
94 | +|bgImageUrl|String|是|http://baidu/com|背景图片| | ||
95 | +|shareTitile|String|是|YOHO!BUY有货来出招,大六一,变身撩妹达人!|分享标题| | ||
96 | +|shareDescribe|String|是|告别单身狗!恋爱手册之约会大作战!|分享描述| | ||
97 | +|sharePic|String|是|http://feature.yoho.cn/0217APPDATING/index.html|分享图片| | ||
98 | +|shareUrl|String|是|http://feature.yoho.cn/0217APPDATING/index.html|分享地址| | ||
99 | +|isVerify|String|否|N|是否授权| | ||
100 | +|instructions|String|是|告别单身狗!恋爱手册之约会大作战!|活动说明| | ||
101 | +|isNewUser|int|否|0|限制新老用户 0:不限制 1:限制新用户| | ||
102 | +|couponId|String|否|123456,233566|关联的优惠券ID| | ||
103 | +--------------------- | ||
104 | + | ||
105 | +### 返回 | ||
106 | + | ||
107 | +``` json | ||
108 | +{ | ||
109 | + "code": 200, | ||
110 | + "data": [], | ||
111 | + "md5": "d751713988987e9331980363e24189ce", | ||
112 | + "message": "更新成功." | ||
113 | +} | ||
114 | + | ||
115 | +``` | ||
116 | + | ||
117 | + | ||
118 | + |
-
Please register or login to post a comment