Authored by lingmin

Update shops_decorator.md

@@ -7,57 +7,18 @@ @@ -7,57 +7,18 @@
7 7
8 ```json 8 ```json
9 9
10 -{  
11 - "shopsId":1, 10 + {
  11 + "shopsId":700,
12 "isBlk":1, 12 "isBlk":1,
13 "platform": "APP", 13 "platform": "APP",
14 "templateName": "BASE", 14 "templateName": "BASE",
15 - "resources": [  
16 - {  
17 - "id":7,  
18 - "name": "shopTopBanner",  
19 - "data": {  
20 - "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png",  
21 - "isShowShopName": "Y"  
22 - }  
23 - },  
24 - {  
25 - "id":8,  
26 - "name": "productDetailTopBanner",  
27 - "data": {  
28 - "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/015}5598441256e46ec285a8ea64e762394.png"  
29 - }  
30 - },  
31 - {  
32 - "id":9,  
33 - "name": "oneRowTwoColImages",  
34 - "data": [  
35 - {  
36 - "position": 1,  
37 - "src": "http://img10.static.yhbimg.com/taobaocms/2016/01/25/12/0155598441256e46ec285a8ea64e762394.png",  
38 - "url": {},  
39 - "startTime": 1309514897,  
40 - "endTime": 1309514967,  
41 - "publishStatus": 0 15 + "resources":{
  16 + allHotProducts:{data:[],id:},
  17 + allHotProducts:{data:[],id:},
  18 + allHotProducts:{data:[],id:},
  19 +
42 } 20 }
43 - ]  
44 - },  
45 - {  
46 - "id":10,  
47 - "name": "hotProducts",  
48 - "data": [  
49 - 50000881,  
50 - 50000882,  
51 - 50000883,  
52 - 50000884,  
53 - 50000885,  
54 - 50000886,  
55 - 50000887,  
56 - 50000888  
57 - ]  
58 } 21 }
59 - ]  
60 -}  
61 ``` 22 ```
62 23
63 |参数名 |必填 |类型 |示例值 |描述 | 24 |参数名 |必填 |类型 |示例值 |描述 |
@@ -145,32 +106,247 @@ @@ -145,32 +106,247 @@
145 106
146 ```json 107 ```json
147 108
148 -{ 109 + {
149 "code": 200, 110 "code": 200,
150 - "message": "操作成功",  
151 - "data":{  
152 - "page":1,  
153 - "size":20,  
154 - "total":101,  
155 - "totalPage":6,  
156 - "list":[{  
157 - "id":1,  
158 - "shopsId":1,  
159 - "shopsName":"T.U.K",  
160 - "checkStatus":100,  
161 - "createTime":1454551897, 111 + "data": {
  112 + "list": [
  113 + {
  114 + "brands": [
  115 + {
  116 + "brandIco": "http://img13.static.yhbimg.com\brandLogo/2015/01/20/16/0293592fac7033878fe46a871869b7c334.jpg",
  117 + "brandName": "Cracker",
  118 + "brandNameCn": "Cracker",
  119 + "brandNameEn": "Cracker",
  120 + "id": 675,
  121 + "saleType": 1,
  122 + "status": 1
  123 + }
  124 + ],
  125 + "checkStatus": 100,
  126 + "createTime": 1448611515,
  127 + "id": 478,
162 "isBlk": 0, 128 "isBlk": 0,
163 - "updateTime":1454551897,  
164 - "status":1,  
165 - "brands":[{  
166 - "id":517,  
167 - "brandName":"T.U.K",  
168 - "brandNameCn":"",  
169 - "brandNameEn":"T.U.K"  
170 - }]  
171 - }] 129 + "passStatus": 0,
  130 + "shopStatus": "1",
  131 + "shopsId": 40,
  132 + "shopsName": "Cracker",
  133 + "shopsType": 1,
  134 + "status": 0,
  135 + "templateId": 480,
  136 + "updateTime": 1469000702
  137 + },
  138 + {
  139 + "brands": [
  140 + {
  141 + "brandDomain": "offlinebread",
  142 + "brandIco": "http://img13.static.yhbimg.com\brandLogo/2016/06/07/01/0235bdaf99cddc344025268cf094cc6add.jpg",
  143 + "brandName": "线下品牌",
  144 + "brandNameCn": "",
  145 + "brandNameEn": "offlinebread",
  146 + "id": 1690,
  147 + "status": 1
  148 + }
  149 + ],
  150 + "checkStatus": 100,
  151 + "createTime": 1467105485,
  152 + "id": 372,
  153 + "isBlk": 0,
  154 + "passStatus": 0,
  155 + "shopStatus": "0",
  156 + "shopsId": 712,
  157 + "shopsName": "吞吞吐吐天天34",
  158 + "shopsType": 1,
  159 + "status": 0,
  160 + "templateId": 372,
  161 + "updateTime": 1468393012
  162 + },
  163 + {
  164 + "brands": [
  165 + {
  166 + "brandDomain": "test",
  167 + "brandIco": "http://img01.yohoboys.com/o_1aagoborp1fkg1t3m15vja3p1mnt7.png",
  168 + "brandName": "111",
  169 + "brandNameEn": "test",
  170 + "id": 1435,
  171 + "saleType": 1,
  172 + "status": 1
  173 + },
  174 + {
  175 + "brandDomain": "1",
  176 + "brandIco": "",
  177 + "brandName": "12夺厅",
  178 + "brandNameEn": "1",
  179 + "id": 1482,
  180 + "status": 1
  181 + },
  182 + {
  183 + "brandDomain": "/kljlkaji",
  184 + "brandIco": "http://img10.static.yhbimg.com/yhb-img01/2016/03/02/09/01bc79579f14c164f5c0de68a16e59330e.png",
  185 + "brandName": "*/?。,》《!@#¥%……&",
  186 + "brandNameEn": "*/?。,》《!@#¥%……&",
  187 + "id": 1524,
  188 + "status": 1
  189 + },
  190 + {
  191 + "brandDomain": "happy",
  192 + "brandIco": "http://img10.static.yhbimg.com\brandLogo/2016/05/30/16/0137290b26989c2bbc53c45e6c74b6f23a.jpg",
  193 + "brandName": "开心日",
  194 + "brandNameCn": "开心日",
  195 + "brandNameEn": "happy",
  196 + "id": 1678,
  197 + "status": 1
  198 + },
  199 + {
  200 + "brandDomain": "yohood",
  201 + "brandIco": "http://img12.static.yhbimg.com\brandLogo/2016/07/05/12/02a917c452bc633b6b1b70a446243cf02e.png",
  202 + "brandName": "YOHOOD",
  203 + "brandNameCn": "YOHOOD",
  204 + "brandNameEn": "YOHOOD",
  205 + "id": 1730,
  206 + "status": 1
  207 + },
  208 + {
  209 + "brandDomain": "yohood",
  210 + "brandIco": "http://img12.static.yhbimg.com\brandLogo/2016/07/05/12/02a917c452bc633b6b1b70a446243cf02e.png",
  211 + "brandName": "YOHOOD",
  212 + "brandNameCn": "YOHOOD",
  213 + "brandNameEn": "YOHOOD",
  214 + "id": 1730,
  215 + "status": 1
  216 + }
  217 + ],
  218 + "checkStatus": 100,
  219 + "createTime": 1467692326,
  220 + "id": 444,
  221 + "isBlk": 0,
  222 + "passStatus": 0,
  223 + "shopStatus": "0",
  224 + "shopsId": 720,
  225 + "shopsName": "YOHOOD",
  226 + "shopsType": 1,
  227 + "status": 0,
  228 + "templateId": 446,
  229 + "updateTime": 1468388843
  230 + },
  231 + {
  232 + "brands": [
  233 + {
  234 + "brandDomain": "blackjack",
  235 + "brandIco": "http://img12.static.yhbimg.com\brandLogo/2015/12/03/07/02001456de51da53186c46fb2e7597a02b.jpg",
  236 + "brandName": "BLACKJACK",
  237 + "brandNameCn": "",
  238 + "brandNameEn": "BLACKJACK",
  239 + "id": 256,
  240 + "saleType": 1,
  241 + "status": 1
  242 + }
  243 + ],
  244 + "checkStatus": 100,
  245 + "createTime": 1459340027,
  246 + "id": 438,
  247 + "isBlk": 0,
  248 + "passStatus": 0,
  249 + "shopStatus": "1",
  250 + "shopsId": 643,
  251 + "shopsName": "BLACKJACK旗舰店",
  252 + "shopsType": 2,
  253 + "status": 0,
  254 + "templateId": 440,
  255 + "updateTime": 1468388332
  256 + },
  257 + {
  258 + "brands": [
  259 + {
  260 + "brandDomain": "blackjack",
  261 + "brandIco": "http://img12.static.yhbimg.com\brandLogo/2015/12/03/07/02001456de51da53186c46fb2e7597a02b.jpg",
  262 + "brandName": "BLACKJACK",
  263 + "brandNameCn": "",
  264 + "brandNameEn": "BLACKJACK",
  265 + "id": 256,
  266 + "saleType": 1,
  267 + "status": 1
  268 + }
  269 + ],
  270 + "checkStatus": 100,
  271 + "createTime": 1460963280,
  272 + "id": 408,
  273 + "isBlk": 0,
  274 + "passStatus": 0,
  275 + "shopStatus": "1",
  276 + "shopsId": 680,
  277 + "shopsName": "牛宝宝旗舰店",
  278 + "shopsType": 1,
  279 + "status": 0,
  280 + "templateId": 410,
  281 + "updateTime": 1468377051
  282 + },
  283 + {
  284 + "brands": [
  285 + {
  286 + "brandDomain": "offlinebread",
  287 + "brandIco": "http://img13.static.yhbimg.com\brandLogo/2016/06/07/01/0235bdaf99cddc344025268cf094cc6add.jpg",
  288 + "brandName": "线下品牌",
  289 + "brandNameCn": "",
  290 + "brandNameEn": "offlinebread",
  291 + "id": 1690,
  292 + "status": 1
  293 + }
  294 + ],
  295 + "checkStatus": 100,
  296 + "createTime": 1465265878,
  297 + "id": 370,
  298 + "isBlk": 0,
  299 + "passStatus": 0,
  300 + "shopStatus": "0",
  301 + "shopsId": 706,
  302 + "shopsName": "线下环境测试店铺",
  303 + "shopsType": 1,
  304 + "status": 0,
  305 + "templateId": 408,
  306 + "updateTime": 1468376532
  307 + },
  308 + {
  309 + "brands": [
  310 + {
  311 + "brandDomain": "PTY",
  312 + "brandIco": "http://img10.static.yhbimg.com/yhb-img01/2016/02/26/13/01451c0b95e4ca317b798a084611f6ec5a.jpg",
  313 + "brandName": "胖头鱼骨汤",
  314 + "brandNameEn": "PTY",
  315 + "id": 1504,
  316 + "status": 1
  317 + },
  318 + {
  319 + "brandDomain": "yohood",
  320 + "brandIco": "http://img12.static.yhbimg.com\brandLogo/2016/07/05/12/02a917c452bc633b6b1b70a446243cf02e.png",
  321 + "brandName": "YOHOOD",
  322 + "brandNameCn": "YOHOOD",
  323 + "brandNameEn": "YOHOOD",
  324 + "id": 1730,
  325 + "status": 1
  326 + }
  327 + ],
  328 + "checkStatus": 100,
  329 + "createTime": 1467696755,
  330 + "id": 406,
  331 + "isBlk": 0,
  332 + "passStatus": 0,
  333 + "shopStatus": "0",
  334 + "shopsId": 722,
  335 + "shopsName": "自己用,他人勿用",
  336 + "shopsType": 2,
  337 + "status": 0,
  338 + "templateId": 406,
  339 + "updateTime": 1468319749
  340 + }
  341 + ],
  342 + "page": 1,
  343 + "size": 20,
  344 + "total": 7,
  345 + "totalPage": 1
  346 + },
  347 + "md5": "a43cfea9dd6089eea8e85eb38ed660bd",
  348 + "message": "操作成功"
172 } 349 }
173 -}  
174 ``` 350 ```
175 351
176 |参数名 |必填 |类型 |示例值 |描述 | 352 |参数名 |必填 |类型 |示例值 |描述 |
@@ -222,13 +398,13 @@ @@ -222,13 +398,13 @@
222 398
223 ```json 399 ```json
224 400
225 -{ 401 + {
226 "code": 200, 402 "code": 200,
227 "data": { 403 "data": {
228 "brandList": [ 404 "brandList": [
229 { 405 {
230 "brandDomain": "sctest1", 406 "brandDomain": "sctest1",
231 - "brandIco": "http://img13.static.yhbimg.com\brandLogo/2016/05/27/16/02ec2f71466d706f0960315bced7bc9747.jpg", 407 + "brandIco": "http://img12.static.yhbimg.com\brandLogo/2016/05/27/16/02ec2f71466d706f0960315bced7bc9747.jpg",
232 "brandName": "宋超测试1", 408 "brandName": "宋超测试1",
233 "brandNameCn": "宋超测试1", 409 "brandNameCn": "宋超测试1",
234 "brandNameEn": "sctest1", 410 "brandNameEn": "sctest1",
@@ -241,16 +417,300 @@ @@ -241,16 +417,300 @@
241 "id": 362, 417 "id": 362,
242 "isBlk": 0, 418 "isBlk": 0,
243 "platform": "PC", 419 "platform": "PC",
244 - "resources": {}, 420 + "resources": {
  421 + "allHotProducts": {
  422 + "data": [],
  423 + "id": 5502
  424 + },
  425 + "allHotProducts_APP": {
  426 + "data": [],
  427 + "id": 5536
  428 + },
  429 + "allNewProducts": {
  430 + "data": [],
  431 + "id": 5534
  432 + },
  433 + "brandBrowse": {
  434 + "data": [
  435 + {
  436 + "brandDomain": "sctest1",
  437 + "brandIco": "http://img13.static.yhbimg.com\brandLogo/2016/05/27/16/02ec2f71466d706f0960315bced7bc9747.jpg",
  438 + "brandName": "宋超测试1",
  439 + "brandNameCn": "宋超测试1",
  440 + "brandNameEn": "sctest1",
  441 + "id": 1680,
  442 + "status": 1
  443 + }
  444 + ],
  445 + "id": 5506
  446 + },
  447 + "goodsTabBar": {
  448 + "data": {
  449 + "hot": [
  450 + {
  451 + "name": "MORE",
  452 + "position": 0,
  453 + "url": ""
  454 + }
  455 + ],
  456 + "new": [
  457 + {
  458 + "name": "MORE",
  459 + "position": 0,
  460 + "url": ""
  461 + }
  462 + ]
  463 + },
  464 + "id": 5522
  465 + },
  466 + "hotProducts": {
  467 + "data": [],
  468 + "id": 5530
  469 + },
  470 + "hotProducts_APP": {
  471 + "data": [],
  472 + "id": 5524,
  473 + "isUsed": "N"
  474 + },
  475 + "hotRecommend": {
  476 + "data": [
  477 + {
  478 + "__index": 0,
  479 + "_num": 0,
  480 + "position": 1,
  481 + "src": "http://img13.static.yhbimg.com/yhb-img02/2016/05/31/17/02afc9dfed84ea599a06fa41760ccce738.png",
  482 + "title": "",
  483 + "url": "http://feature.yoho.cn/0112/0112APPSALE6BOY/index.html?title=冬著劲减&share_id=406"
  484 + }
  485 + ],
  486 + "id": 5512,
  487 + "title": ""
  488 + },
  489 + "largeSlideImg": {
  490 + "data": [
  491 + {
  492 + "__index": 0,
  493 + "_num": 0,
  494 + "data": [
  495 + {
  496 + "endTime": "2016-09-21 00:00:00",
  497 + "src": "http://img12.static.yhbimg.com/yhb-img02/2016/05/31/17/0273d1b4a5afc4f9598c5b21085d38f476.jpg",
  498 + "startTime": "2016-05-31 00:00:00",
  499 + "url": "http://m.yohobuy.com/product/pro_238869_313457/LIGHTNINGBEARLNBRPOLOShan1520712044POLOShan.html?openby:yohobuy={\"action\":\"go.productDetail\",\"params\":{\"product_skn\":51134310}}"
  500 + }
  501 + ],
  502 + "position": 1
  503 + }
  504 + ],
  505 + "id": 5526
  506 + },
  507 + "largeSlideImg_APP": {
  508 + "data": [
  509 + {
  510 + "__index": 0,
  511 + "_num": 0,
  512 + "data": [
  513 + {
  514 + "endTime": "2016-09-21 00:00:00",
  515 + "src": "http://img12.static.yhbimg.com/yhb-img02/2016/05/31/17/0273d1b4a5afc4f9598c5b21085d38f476.jpg",
  516 + "startTime": "2016-05-31 00:00:00",
  517 + "url": ""
  518 + }
  519 + ],
  520 + "isUsed": "Y",
  521 + "position": 1
  522 + }
  523 + ],
  524 + "id": 5532,
  525 + "isUsed": "Y"
  526 + },
  527 + "navigationBar": {
  528 + "data": [
  529 + {
  530 + "name": "",
  531 + "url": ""
  532 + },
  533 + {
  534 + "name": "",
  535 + "url": ""
  536 + },
  537 + {
  538 + "name": "",
  539 + "url": ""
  540 + }
  541 + ],
  542 + "id": 5518
  543 + },
  544 + "newProducts": {
  545 + "data": [],
  546 + "id": 5520
  547 + },
  548 + "oneRowTwoColImages": {
  549 + "data": [
  550 + {
  551 + "__index": 0,
  552 + "_num": 0,
  553 + "data": [
  554 + {
  555 + "endTime": "2016-08-18 00:00:00",
  556 + "src": "http://img12.static.yhbimg.com/yhb-img02/2016/05/31/17/020c777205fe058d915b5275e51ec87509.jpg",
  557 + "startTime": "2016-05-31 01:00:00",
  558 + "url": ""
  559 + }
  560 + ],
  561 + "position": 2
  562 + },
  563 + {
  564 + "__index": 1,
  565 + "_num": 1,
  566 + "data": [
  567 + {
  568 + "endTime": "2016-08-10 00:00:00",
  569 + "src": "http://img13.static.yhbimg.com/yhb-img02/2016/05/31/17/0247ebd84ea88e14bbb40011fbd3bb8546.png",
  570 + "startTime": "2016-05-31 00:00:00",
  571 + "url": ""
  572 + }
  573 + ],
  574 + "position": 1
  575 + }
  576 + ],
  577 + "id": 5500
  578 + },
  579 + "oneRowTwoColImages_APP": {
  580 + "data": [
  581 + {
  582 + "__index": 0,
  583 + "_num": 0,
  584 + "data": [
  585 + {
  586 + "endTime": "2016-08-18 00:00:00",
  587 + "src": "http://img12.static.yhbimg.com/yhb-img02/2016/05/31/17/020c777205fe058d915b5275e51ec87509.jpg",
  588 + "startTime": "2016-05-31 01:00:00",
  589 + "url": ""
  590 + }
  591 + ],
  592 + "isUsed": "Y",
  593 + "position": 2
  594 + },
  595 + {
  596 + "__index": 1,
  597 + "_num": 1,
  598 + "data": [
  599 + {
  600 + "endTime": "2016-08-10 00:00:00",
  601 + "src": "http://img13.static.yhbimg.com/yhb-img02/2016/05/31/17/0247ebd84ea88e14bbb40011fbd3bb8546.png",
  602 + "startTime": "2016-05-31 00:00:00",
  603 + "url": ""
  604 + }
  605 + ],
  606 + "isUsed": "Y",
  607 + "position": 1
  608 + }
  609 + ],
  610 + "id": 5514,
  611 + "isUsed": "Y"
  612 + },
  613 + "recommend": {
  614 + "data": [
  615 + {
  616 + "__index": 0,
  617 + "_num": 0,
  618 + "enName": "",
  619 + "isShowInApp": "Y",
  620 + "name": "gsdfsfsfe",
  621 + "position": 1,
  622 + "src": "http://img13.static.yhbimg.com/yhb-img02/2016/05/31/17/02c35dd97f27207a66687d8ac66b2455ac.jpg",
  623 + "title": "经典推荐",
  624 + "url": "http://feature.yoho.cn/0112/0112APPSALE6BOY/index.html?title=冬著劲减&share_id=406"
  625 + }
  626 + ],
  627 + "id": 5508,
  628 + "title": "经典推荐"
  629 + },
  630 + "recommend_APP": {
  631 + "data": [
  632 + {
  633 + "__index": 0,
  634 + "_num": 0,
  635 + "enName": "",
  636 + "isShowInApp": "Y",
  637 + "isUsed": "Y",
  638 + "name": "gsdfsfsfe",
  639 + "position": 1,
  640 + "src": "http://img13.static.yhbimg.com/yhb-img02/2016/05/31/17/02c35dd97f27207a66687d8ac66b2455ac.jpg",
  641 + "title": "经典推荐",
  642 + "url": ""
  643 + }
  644 + ],
  645 + "id": 5516,
  646 + "isUsed": "Y"
  647 + },
  648 + "shopTopBanner": {
  649 + "data": [
  650 + {
  651 + "__index": 0,
  652 + "_num": 0,
  653 + "detailSrc": "http://img12.static.yhbimg.com/yhb-img02/2016/05/31/17/02e3a1cef364290b7c8769b60dbfe67003.jpg",
  654 + "isShowShopName": "Y",
  655 + "shopSrc": "http://img13.static.yhbimg.com/yhb-img02/2016/05/31/17/025e4fe477f685b35faf2da9a7ad48fa5d.png"
  656 + }
  657 + ],
  658 + "id": 5504
  659 + },
  660 + "shopTopBanner_APP": {
  661 + "data": [
  662 + {
  663 + "__index": 0,
  664 + "_num": 0,
  665 + "detailSrc": "http://img12.static.yhbimg.com/yhb-img02/2016/05/31/17/02e3a1cef364290b7c8769b60dbfe67003.jpg",
  666 + "isShowShopName": "Y",
  667 + "isUsed": "Y",
  668 + "shopSrc": "http://img13.static.yhbimg.com/yhb-img02/2016/05/31/17/025e4fe477f685b35faf2da9a7ad48fa5d.png"
  669 + }
  670 + ],
  671 + "id": 5510,
  672 + "isUsed": "Y"
  673 + },
  674 + "shopTopBanner_base": {
  675 + "data": [
  676 + {
  677 + "__index": 0,
  678 + "_num": 0,
  679 + "detailSrc": "http://img12.static.yhbimg.com/yhb-img02/2016/05/31/17/022ce9d1b6f092566eae43c117ba93546d.png",
  680 + "isShowShopName": "N",
  681 + "shopSrc": "http://img12.static.yhbimg.com/yhb-img02/2016/05/31/17/02a118e78aa8b2aa1762e338187002158e.jpg"
  682 + }
  683 + ],
  684 + "id": 5528
  685 + },
  686 + "signboard": {
  687 + "data": [
  688 + {
  689 + "__index": 0,
  690 + "_num": 0,
  691 + "data": [
  692 + {
  693 + "endTime": "2016-10-28 09:00:00",
  694 + "src": "http://img13.static.yhbimg.com/yhb-img02/2016/05/31/17/02ada394e182a4da098cacadfc67d8b8f0.png",
  695 + "startTime": "2016-05-31 00:00:00",
  696 + "url": "http://m.yohobuy.com/signin.html?refer=%2Fhome%2Fmessage"
  697 + }
  698 + ],
  699 + "position": 1
  700 + }
  701 + ],
  702 + "id": 5498
  703 + }
  704 + },
245 "shopName": "sctest1", 705 "shopName": "sctest1",
246 "shopsId": 700, 706 "shopsId": 700,
247 "status": 0, 707 "status": 0,
248 "templateType": "2", 708 "templateType": "2",
249 "updateTime": 1464922138 709 "updateTime": 1464922138
250 }, 710 },
251 - "md5": "db115f5884592c53ad52dcff85c7ab53", 711 + "md5": "7409b9ea5a666db3808aaa48e7a9abdf",
252 "message": "操作成功" 712 "message": "操作成功"
253 -} 713 + }
254 714
255 |参数名 |必填 |类型 |示例值 |描述 | 715 |参数名 |必填 |类型 |示例值 |描述 |
256 |------ |---- |---- |------ |---- | 716 |------ |---- |---- |------ |---- |