Showing
1 changed file
with
130 additions
and
0 deletions
inferface-document/cms/活动分享管理.md
0 → 100644
1 | +# 活动分享管理 | ||
2 | + | ||
3 | +## 首页列表 | ||
4 | +> 'webShare/getWebShareList' | ||
5 | + | ||
6 | +### 入参 | ||
7 | +----------------------------------------------------------- | ||
8 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
9 | +|------ |---- |---- |------ |---- | | ||
10 | +|id |否 |int | 1 |id| | ||
11 | +|status |否 |string |0 |0:关闭;1:开启 | | ||
12 | +|title|否 |string |YOHO!BUY有货【韩国直达】韩式潮牌,热力入驻有货,全线新品首发~|标题| | ||
13 | +| | ||
14 | +### 返回 | ||
15 | + | ||
16 | +``` json | ||
17 | +{ | ||
18 | + "code": 200, | ||
19 | + "data": { | ||
20 | + "list": [ | ||
21 | + { | ||
22 | + "createTime": 1440730186, | ||
23 | + "id": 1, | ||
24 | + "shareImage": "http://img12.static.yhbimg.com/taobaocms/2015/08/28/10/02076e3caed758a1c18c91a0e9cae3368f.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
25 | + "shareTitleMain": "新品节", | ||
26 | + "shareTitleSub": "哈哈哈和哈哈哈", | ||
27 | + "shareUrl": "http://cuxiao.m.yohobuy.com/newfestival/index", | ||
28 | + "status": 1, | ||
29 | + "title": "新品节欢迎你", | ||
30 | + "updateTime": 1441165069 | ||
31 | + } | ||
32 | + ], | ||
33 | + "page": 1, | ||
34 | + "size": 10, | ||
35 | + "total": 1, | ||
36 | + "totalPage": 1 | ||
37 | + }, | ||
38 | + "md5": "12e3511be875913ba1f8c84f6db0a382", | ||
39 | + "message": "操作成功" | ||
40 | +} | ||
41 | + | ||
42 | +``` | ||
43 | + | ||
44 | +## 新增活动分享 [注意在shareImage加上客户端需要的imageView参数] | ||
45 | + | ||
46 | +> 'webShare/addWebShare' | ||
47 | + | ||
48 | +### 入参 | ||
49 | + | ||
50 | +----------------------------------------------------------- | ||
51 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
52 | +|------ |---- |---- |------ |---- | | ||
53 | +|title |是 |string | 标题 |标题| | ||
54 | +|shareTitleMain |是 |string | 分享主标题 |分享主标题| | ||
55 | +|shareTitleSub |否 |string | 分享副标题 |分享副标题| | ||
56 | +|shareImage |否 |string | http://img12.static.yhbimg.com/taobaocms/2015/08/28/10/02076e3caed758a1c18c91a0e9cae3368f.jpg?imageView/{mode}/w/{width}/h/{height}|分享图片| | ||
57 | +|shareUrl |否 |string | http://cuxiao.m.yohobuy.com/newfestival/index |跳转链接| | ||
58 | +|status |否 |string | 1 |状态1:开启;2:关闭| | ||
59 | + | ||
60 | +### 返回 | ||
61 | + | ||
62 | +``` json | ||
63 | + | ||
64 | +{ | ||
65 | + "code": 200, | ||
66 | + "data": [], | ||
67 | + "md5": "d751713988987e9331980363e24189ce", | ||
68 | + "message": "新增成功" | ||
69 | +} | ||
70 | + | ||
71 | +``` | ||
72 | + | ||
73 | +## 更新活动分享 | ||
74 | + | ||
75 | +> 'webShare/updateWebShare' | ||
76 | + | ||
77 | +### 入参 | ||
78 | + | ||
79 | +----------------------------------------------------------- | ||
80 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
81 | +|------ |---- |---- |------ |---- | | ||
82 | +|id|是|int|id|id| | ||
83 | +|title |否 |string | 标题 |标题| | ||
84 | +|shareTitleMain |否 |string | 分享主标题 |分享主标题| | ||
85 | +|shareTitleSub |否 |string | 分享副标题 |分享副标题| | ||
86 | +|shareImage |否 |string | http://img12.static.yhbimg.com/taobaocms/2015/08/28/10/02076e3caed758a1c18c91a0e9cae3368f.jpg?imageView/{mode}/w/{width}/h/{height}|分享图片| | ||
87 | +|shareUrl |否 |string | http://cuxiao.m.yohobuy.com/newfestival/index |跳转链接| | ||
88 | +|status |否 |string | 1 |状态1:开启;2:关闭| | ||
89 | + | ||
90 | +### 返回 | ||
91 | + | ||
92 | +{ | ||
93 | + "code": 200, | ||
94 | + "data": [], | ||
95 | + "md5": "d751713988987e9331980363e24189ce", | ||
96 | + "message": "更新成功" | ||
97 | +} | ||
98 | + | ||
99 | +## 根据id查询数据 | ||
100 | + | ||
101 | +> 'webShare/selectWebShare' | ||
102 | + | ||
103 | +### 入参 | ||
104 | + | ||
105 | +----------------------------------------------------------- | ||
106 | +|参数名 |描述|类型 |示例值 |必填 | | ||
107 | +|------ |---- |---- |------ |---- | | ||
108 | +|id |id |Integer | 5 |是| | ||
109 | + | ||
110 | +### 返回 | ||
111 | + | ||
112 | +``` json | ||
113 | +{ | ||
114 | + "code": 200, | ||
115 | + "data": { | ||
116 | + "createTime": 1466997080, | ||
117 | + "id": 32, | ||
118 | + "shareImage": "http2://img12.static.yhbimg.com/taobaocms/2015/08/28/10/02076e3caed758a1c18c91a0e9cae3368f.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
119 | + "shareTitleMain": "主标题2", | ||
120 | + "shareTitleSub": "副标题2", | ||
121 | + "shareUrl": "http2://www.yoho.cn", | ||
122 | + "status": 0, | ||
123 | + "title": "品牌地图2", | ||
124 | + "updateTime": 1466997152 | ||
125 | + }, | ||
126 | + "md5": "6f8a1ed8b2aba130e0265955ba95ee09", | ||
127 | + "message": "操作成功" | ||
128 | +} | ||
129 | + | ||
130 | +``` |
-
Please register or login to post a comment