Showing
1 changed file
with
94 additions
and
0 deletions
inferface-document/shops/shops_decorator.md
0 → 100644
1 | +# 店铺装修接口 | ||
2 | + | ||
3 | +## 保存店铺装修系信息 | ||
4 | +> 接口名: `/shops/decorator/saveShopsDecorator` | ||
5 | + | ||
6 | +### 入参 | ||
7 | + | ||
8 | +```json | ||
9 | + | ||
10 | +{ | ||
11 | + "shopsId":1, | ||
12 | + "platform": "APP", | ||
13 | + "templateName": "BASE", | ||
14 | + "resources": [ | ||
15 | + { | ||
16 | + "name": "shopTopBanner", | ||
17 | + "data": { | ||
18 | + "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png", | ||
19 | + "isShowShopName": "Y" | ||
20 | + } | ||
21 | + }, | ||
22 | + { | ||
23 | + "name": "productDetailTopBanner", | ||
24 | + "data": { | ||
25 | + "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/015}5598441256e46ec285a8ea64e762394.png" | ||
26 | + } | ||
27 | + }, | ||
28 | + { | ||
29 | + "name": "oneRowTwoColImages", | ||
30 | + "data": [ | ||
31 | + { | ||
32 | + "position": 1, | ||
33 | + "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png", | ||
34 | + "url": {}, | ||
35 | + "startTime": 1309514897, | ||
36 | + "endTime": 1309514967, | ||
37 | + "publishStatus": 0 | ||
38 | + } | ||
39 | + ] | ||
40 | + }, | ||
41 | + { | ||
42 | + "name": "hotProducts", | ||
43 | + "data": [ | ||
44 | + 50000881, | ||
45 | + 50000882, | ||
46 | + 50000883, | ||
47 | + 50000884, | ||
48 | + 50000885, | ||
49 | + 50000886, | ||
50 | + 50000887, | ||
51 | + 50000888 | ||
52 | + ] | ||
53 | + } | ||
54 | + ] | ||
55 | +} | ||
56 | +``` | ||
57 | + | ||
58 | +------------------------------------------------------------ | ||
59 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
60 | +|------ |---- |---- |------ |---- | | ||
61 | +|shopsId |是 |int |1 |店铺编号 | | ||
62 | +|platform |否 |string |APP |平台名称 | | ||
63 | +|templateName|否 |string |BASE |模板名称 | | ||
64 | +|resources |否 |json | |资源 | | ||
65 | + | ||
66 | +#### 资源描述-店铺头部横幅 | ||
67 | + | ||
68 | +----------------------------------------------------------- | ||
69 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
70 | +|------ |---- |---- |------ |---- | | ||
71 | +|name |是 |string |shopTopBanner |资源名称 | | ||
72 | +|data |是 |json | |资源内容 | | ||
73 | +|src |是 |string |http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png|店铺头部横幅图片| | ||
74 | +|isShowShopName |否 |string |Y |是否显示店铺名称| | ||
75 | + | ||
76 | +#### 资源描述-商品详情头部横幅 | ||
77 | + | ||
78 | +----------------------------------------------------------- | ||
79 | +|参数名 |必填 |类型 |示例值 |描述 | | ||
80 | +|------ |---- |---- |------ |---- | | ||
81 | +|name |是 |string |productDetailTopBanner |资源名称 | | ||
82 | +|data |是 |json | |资源内容 | | ||
83 | +|src |是 |string |http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png|商品详情头部横幅图片| | ||
84 | + | ||
85 | + | ||
86 | +### 返回 | ||
87 | + | ||
88 | +```json | ||
89 | + | ||
90 | +{ | ||
91 | + "code": 200, | ||
92 | + "message": "操作成功" | ||
93 | +} | ||
94 | +``` |
-
Please register or login to post a comment