Authored by liqingzhong

Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop

  1 +# 七牛云图片上传辅助工具类
  2 +---------------------
  3 +
  4 +# 获取图片相对路径
  5 +
  6 +> 方法名: `getImageRelativeUrl`
  7 +场景:前台传的是图片绝对路径,数据库存储需要图片相对路径
  8 +
  9 +### 参数
  10 +
  11 +-------------------------
  12 +|参数名|类型|例子|说明
  13 +|--------|----|----|----|
  14 +|fileName|String|"http://img11.static.yhbimg.com/yhb-img01/2016/03/04/15/01ecb6d57ef311f184cc871d74cef554fd.jpg"|图片地址绝对路径
  15 +
  16 +
  17 +---------------------
  18 +
  19 +### 返回
  20 +
  21 +图片地址相对路径:
  22 +`"/2016/03/04/15/01ecb6d57ef311f184cc871d74cef554fd.jpg"`
  23 +
  24 +# 获取图片绝对路径
  25 +
  26 +> 方法名: `getImageAbsoluteUrl`
  27 +场景:数据库存储是图片相对路径,前台需要图片绝对路径
  28 +
  29 +### 参数
  30 +
  31 +-------------------------
  32 +|参数名|类型|例子|说明
  33 +|--------|----|----|----|
  34 +|fileName|String|"/2016/03/04/15/01ecb6d57ef311f184cc871d74cef554fd.jpg"|图片地址相对路径
  35 +
  36 +
  37 +---------------------
  38 +
  39 +### 返回
  40 +
  41 +图片地址绝对路径:
  42 +`"http://img11.static.yhbimg.com/yhb-img01/2016/03/04/15/01ecb6d57ef311f184cc871d74cef554fd.jpg"`
@@ -43,6 +43,8 @@ @@ -43,6 +43,8 @@
43 |type | int | 1 | 1:"品牌款型";2:"品牌系列" | 是| 43 |type | int | 1 | 1:"品牌款型";2:"品牌系列" | 是|
44 |page | int | 1 | 页码数,默认1 | 否| 44 |page | int | 1 | 页码数,默认1 | 否|
45 |size | int | 10 | 记录数,默认10条 | 否| 45 |size | int | 10 | 记录数,默认10条 | 否|
  46 +|status | int | 1 | 状态 1:打开 0:关闭 | 否|
  47 +
46 -------------------------------- 48 --------------------------------
47 49
48 ### 返回 50 ### 返回
  1 +# 限购商品管理接口服务定义
  2 +---------------------
  3 +
  4 +# 导出限购商品提醒接口
  5 +
  6 +> 接口名: `/batch/export`
  7 +
  8 +### 入参
  9 +
  10 +-------------------------
  11 +|属性名称|类型|例子|说明|是否必填|
  12 +|--------|----|----|----|--------|
  13 +|queryConf|string|2016022517335568|限购商品码,多个以竖线分隔|是|
  14 +|type|string|limitProductReminder|导出类型,此处是固定值,不能变|是|
  15 +---------------------
  16 +
  17 +
  18 +
  19 +```
  20 +
  21 +
@@ -85,6 +85,123 @@ @@ -85,6 +85,123 @@
85 85
86 ``` 86 ```
87 87
  88 +
  89 +# 新增商品描述
  90 +
  91 +> 接口名: `/product/saveProductDesc`
  92 +
  93 +### 入参
  94 +{"productSkn":50000055, "productDesc":"商品描述信息"}
  95 +
  96 +-------------------------
  97 +|属性名称|类型|例子|说明|是否必填|
  98 +|--------|----|----|----|--------|
  99 +|productSkn|number|50018101|skn|必填|
  100 +|productDesc|string||描述信息|必填|
  101 +---------------------
  102 +
  103 +### 返回 (code为200代表成功,否则看message的失败原因)
  104 +
  105 +``` json
  106 +{
  107 + "code": 200,
  108 + "data": [],
  109 + "md5": "d751713988987e9331980363e24189ce",
  110 + "message": "save netSale product desc success."
  111 +}
  112 +
  113 +```
  114 +
  115 +
  116 +
  117 +
  118 +
  119 +# 保存网销的完整信息
  120 +
  121 +> 接口名: `/product/saveNetSaleAllInfo`
  122 +
  123 +### 入参
  124 +{"productSkn":50000056, "productName":"新的商品名称", "isNew":"N", "sellChannels":"1,2,3","phrase":"商品简评","outSaleTime":12, "shopIds":"1,23,3", "vedioUrl":"videoUrlvideoUrlvideoUrlvideoUrl"
  125 + , "recommend":"2213213","goodsImagesReq" : {"goodsImagesBoList":"[{'productSkc':7661 ,'productSkn':50000056, 'imageUrl':'imageUrl', 'orderBy':2, 'genderCover':2,'isDefault':'Y'}]", "productSkc":7661 ,"productSkn":50000056}
  126 + ,"searchSortList": "[{'productSkn':50000055,'modelId':2,'intValue':22},{'productSkn':50000057,'modelId':3,'intValue':44}]",
  127 + "brandModel":"11", "brandSeries":"33", "makeCrafts":"122,122", "pattern":"1", "style":9,"wearSense":[{"wearSenseId":1,"value":"0"},{"wearSenseId":2,"value":"0"},{"wearSenseId":3,"value":"0"},{"wearSenseId":4,"value":"0"}]
  128 + ,"salesPhrase":"促销短语","isHostsell":"N", "searchKeys":"搜索词1,搜索词2 以英文逗号分隔", "productDesc":"商品描述信息111111"
  129 +
  130 +}
  131 +
  132 +-------------------------
  133 +|属性名称|类型|例子|说明|是否必填|
  134 +|--------|----|----|----|--------|
  135 +|productSkn|number|50000055|skn|必填|
  136 +|productName|string||名称|必填|
  137 +|isNew|string||是否新品|"Y" "N"|
  138 +|sellChannels|string||销售渠道|1网站 2手机 3 场地 多选则用逗号分隔|
  139 +|phrase|string||商品简评||
  140 +|outSaleTime|number||售罄几天后下架||
  141 +|shopIds|string||展示店铺|店铺Id列表 多选则用逗号分隔|
  142 +|productDesc|string||描述信息|必填|
  143 +|vedioUrl|string||视频的链接地址|必填|
  144 +|recommend|string||小编推荐信息|必填|
  145 +|brandModel|字符串||品牌款型||
  146 +|brandSeries|字符串||品牌系列||
  147 +|makeCrafts|字符串||制作工艺||
  148 +|pattern|字符串||图案纹理||
  149 +|style|字符串||风格||
  150 +|salesPhrase|字符串||促销短语||
  151 +|isHostsell|字符串||是否热卖 "Y" or "N"||
  152 +|wearSense|json字符串||风格|弹性 id 为1 厚度 2 柔软度 3 透气性 4 他们的值1-5|
  153 +|searchSortList|json字符串||productSkn必填 id 当此为修改的封面则必填否则认为为新增 modelId 品牌排序填“1”,奥莱排序填“2,”,搜索排序填“3”) projectId 填写1 |必填|
  154 +---------------------
  155 +
  156 +### 返回 (code为200代表成功,否则看message的失败原因)
  157 +
  158 +``` json
  159 +{
  160 + "code": 200,
  161 + "data": [],
  162 + "md5": "d751713988987e9331980363e24189ce",
  163 + "message": "保存成功."
  164 +}
  165 +
  166 +```
  167 +
  168 +
  169 +
  170 +
  171 +
  172 +# 新增上架前文本信息
  173 +
  174 +> 接口名: `/product/saveNetSaleBaseInfo`
  175 +
  176 +### 入参
  177 +{"productSkn":50000055, "productName":"新的商品名称", "isNew":"N", "sellChannels":"1,2,3","phrase":"商品简评","outSaleTime":12, "shopIds":"1,23,3"}
  178 +
  179 +-------------------------
  180 +|属性名称|类型|例子|说明|是否必填|
  181 +|--------|----|----|----|--------|
  182 +|productSkn|number|50000055|skn|必填|
  183 +|productName|string||名称|必填|
  184 +|isNew|string||是否新品|"Y" "N"|
  185 +|sellChannels|string||销售渠道|1网站 2手机 3 场地 多选则用逗号分隔|
  186 +|phrase|string||商品简评||
  187 +|outSaleTime|number||售罄几天后下架||
  188 +|shopIds|string||展示店铺|店铺Id列表 多选则用逗号分隔|
  189 +---------------------
  190 +
  191 +### 返回 (code为200代表成功,否则看message的失败原因)
  192 +
  193 +``` json
  194 +{
  195 + "code": 200,
  196 + "data": [],
  197 + "md5": "d751713988987e9331980363e24189ce",
  198 + "message": "保存文本信息成功."
  199 +}
  200 +
  201 +```
  202 +
  203 +
  204 +
88 # 获取单个商品搭配信息 205 # 获取单个商品搭配信息
89 206
90 > 接口名: `/collocation/selectCollocationById` 207 > 接口名: `/collocation/selectCollocationById`
@@ -254,13 +371,13 @@ @@ -254,13 +371,13 @@
254 371
255 > 接口名: `/product/saveNetSaleVideo` 372 > 接口名: `/product/saveNetSaleVideo`
256 373
257 -### 入参 {"productSkn": 50018101, "videoUrl":"url"} 374 +### 入参 {"productSkn": 50018101, "vedioUrl":"url"}
258 375
259 ------------------------- 376 -------------------------
260 |属性名称|类型|例子|说明|是否必填| 377 |属性名称|类型|例子|说明|是否必填|
261 |--------|----|----|----|--------| 378 |--------|----|----|----|--------|
262 |productSkn|number||productSkn|必填| 379 |productSkn|number||productSkn|必填|
263 -|videoUrl|string||视频的链接地址|必填| 380 +|vedioUrl|string||视频的链接地址|必填|
264 381
265 --------------------- 382 ---------------------
266 383
@@ -430,4 +547,865 @@ @@ -430,4 +547,865 @@
430 "message": "update status success." 547 "message": "update status success."
431 } 548 }
432 549
  550 +```
  551 +
  552 +# 保存网销的上架后文本信息
  553 +
  554 +> 接口名: `/product/saveAfterSaleInfo`
  555 +
  556 +### 入参
  557 +
  558 +{"brandModel":"11", "brandSeries":"33", "makeCrafts":"122,122", "pattern":"1", "style":9,"wearSense":[{"wearSenseId":1,"value":"0"},{"wearSenseId":2,"value":"0"},{"wearSenseId":3,"value":"0"},{"wearSenseId":4,"value":"0"}]
  559 + ,"productSkn":50000055,"salesPhrase":"促销短语","isHostsell":"N"
  560 +}
  561 +
  562 +-------------------------
  563 +|属性名称|类型|例子|说明|是否必填|
  564 +|--------|----|----|----|--------|
  565 +|productSkn|number||商品skn|必填|
  566 +|brandModel|字符串||品牌款型||
  567 +|brandSeries|字符串||品牌系列||
  568 +|makeCrafts|字符串||制作工艺||
  569 +|pattern|字符串||图案纹理||
  570 +|style|字符串||风格||
  571 +|salesPhrase|字符串||促销短语||
  572 +|isHostsell|字符串||是否热卖 "Y" or "N"||
  573 +|wearSense|json字符串||风格|弹性 id 为1 厚度 2 柔软度 3 透气性 4 他们的值1-5|
  574 +
  575 +---------------------
  576 +
  577 +### 返回
  578 +
  579 +``` json
  580 +{
  581 + "code": 200,
  582 + "data": [],
  583 + "md5": "d751713988987e9331980363e24189ce",
  584 + "message": "保存上架后补全信息成功"
  585 +}
  586 +
  587 +```
  588 +
  589 +
  590 +# 批量商品skn预处理
  591 +
  592 +> 接口名: `/product/updateProductSknTimingInfo`
  593 +
  594 +### 入参 {"productSknList":"[51001873, 51001874, 51001872]", "type":6, "outSaleTime":1, "advanceEndTime":"2016-12-13 12:12:12"}
  595 +
  596 +-------------------------
  597 +|属性名称|类型|例子|说明|是否必填|
  598 +|--------|----|----|----|--------|
  599 +|productSknList|json字符串||商品skn列表|必填|
  600 +|type|number||预处理类型1 : 上架2 : 上架上新 3 : 修改预上架时间4 : 修改预上架上新时间5 : 修改预售时间6 : 预下架7 : 立即下架|必填|
  601 +|outSaleTime|数字||几天后下架|当type为6预下架必填|
  602 +|shelveTime|日期字符串格式见上述例子||预上架时间|当type为3预上架必填|
  603 +|onNewTime|日期字符串格式见上述例子||预上架上新时间|当type为4预上架上新必填|
  604 +|advanceBeginTime|日期字符串格式见上述例子||预售开始时间|当type为5预售必填|
  605 +|advanceEndTime|日期字符串格式见上述例子||预售结束时间|当type为5预售必填|
  606 +
  607 +---------------------
  608 +
  609 +### 返回
  610 +
  611 +``` json
  612 +{
  613 + "code": 200,
  614 + "data": [],
  615 + "md5": "d751713988987e9331980363e24189ce",
  616 + "message": "操作成功"
  617 +}
  618 +
  619 +```
  620 +
  621 +
  622 +
  623 +# 查询网销信息
  624 +
  625 +> 接口名: `/product/queryNetSaleInforList`
  626 +
  627 +### 入参 {"productSknList":"[51001873, 51001874, 51001872]", "type":6, "outSaleTime":1, "advanceEndTime":"2016-12-13 12:12:12"}
  628 +
  629 +-------------------------
  630 +|属性名称|类型|例子|说明|是否必填|
  631 +|--------|----|----|----|--------|
  632 +|productSkn|number||商品skn||
  633 +|productSkc|number||商品skc||
  634 +|productSku|number||商品sku||
  635 +|productName|字符串||名称||
  636 +|shopId|number||店铺Id||
  637 +|brandId|number||品牌Id||
  638 +|isJit|枚举型(字符串)||是否jit商品|"Y" 或者 "N"|
  639 +|stock|枚举型(数字型)||是否有库存|0 或者 1|
  640 +|isScreen|枚举型||是否拍摄状态|"Y" 或者 "N"|
  641 +|isMeasure|枚举型||是否测量状态|"Y" 或者 "N"|
  642 +|gender|枚举型||性别|1男2女 3通用|
  643 +|maxSortId|数字型||一级分类Id||
  644 +|middleSortId|数字型||二级分类Id||
  645 +|smallSortId|数字型||三级分类Id||
  646 +|isOutLets|枚举型||是否奥莱|"Y" 或者 "N"|
  647 +|productStatus|数字型||状态|1上架 0 下架 -1 待修改 2待审核 3 审核驳回|
  648 +|page|数字型||当前页数||
  649 +|size|数字型||每页显示条数|默认10|
  650 +
  651 +---------------------
  652 +
  653 +### 返回
  654 +
  655 +``` json
  656 +{
  657 + "code": 200,
  658 + "data": {
  659 + "list": [
  660 + {
  661 + "attribute": 1,
  662 + "brandId": 1523,
  663 + "brandName": "冬冬腔",
  664 + "gender": "2",
  665 + "maxSortId": 4,
  666 + "maxSortName": "裙装",
  667 + "middleSortId": 31,
  668 + "middleSortName": "连衣裙",
  669 + "picImgUrl": "",
  670 + "productName": "DFASDLKF;LASDKAAAAA",
  671 + "productSkn": 51198302,
  672 + "retailPrice": 495,
  673 + "returnCoin": 0,
  674 + "salesPrice": 495,
  675 + "smallSortId": 134,
  676 + "smallSortName": "连衣裙"
  677 + },
  678 + {
  679 + "attribute": 1,
  680 + "brandId": 1527,
  681 + "brandName": "SIP",
  682 + "gender": "1",
  683 + "maxSortId": 3,
  684 + "maxSortName": "裤装",
  685 + "middleSortId": 27,
  686 + "middleSortName": "牛仔裤",
  687 + "picImgUrl": "",
  688 + "productName": "导入新货TX",
  689 + "productSkn": 51198298,
  690 + "retailPrice": 495,
  691 + "returnCoin": 0,
  692 + "salesPrice": 495,
  693 + "smallSortId": 130,
  694 + "smallSortName": "牛仔裤"
  695 + },
  696 + {
  697 + "attribute": 1,
  698 + "brandId": 1527,
  699 + "brandName": "SIP",
  700 + "editTime": "2016-03-03 16:27:00",
  701 + "gender": "1",
  702 + "maxSortId": 3,
  703 + "maxSortName": "裤装",
  704 + "middleSortId": 27,
  705 + "middleSortName": "牛仔裤",
  706 + "picImgUrl": "",
  707 + "productName": "导入新货XX",
  708 + "productSkn": 51198299,
  709 + "retailPrice": 495,
  710 + "returnCoin": 0,
  711 + "salesPrice": 495,
  712 + "smallSortId": 130,
  713 + "smallSortName": "牛仔裤"
  714 + },
  715 + {
  716 + "attribute": 1,
  717 + "brandId": 1527,
  718 + "brandName": "SIP",
  719 + "gender": "1",
  720 + "maxSortId": 3,
  721 + "maxSortName": "裤装",
  722 + "middleSortId": 27,
  723 + "middleSortName": "牛仔裤",
  724 + "picImgUrl": "",
  725 + "productName": "导入新货XY",
  726 + "productSkn": 51198300,
  727 + "retailPrice": 495,
  728 + "returnCoin": 0,
  729 + "salesPrice": 495,
  730 + "smallSortId": 130,
  731 + "smallSortName": "牛仔裤"
  732 + },
  733 + {
  734 + "attribute": 1,
  735 + "brandId": 1527,
  736 + "brandName": "SIP",
  737 + "gender": "2",
  738 + "maxSortId": 3,
  739 + "maxSortName": "裤装",
  740 + "middleSortId": 27,
  741 + "middleSortName": "牛仔裤",
  742 + "picImgUrl": "",
  743 + "productName": "裤装AAA",
  744 + "productSkn": 51198301,
  745 + "retailPrice": 789,
  746 + "returnCoin": 0,
  747 + "salesPrice": 607,
  748 + "smallSortId": 130,
  749 + "smallSortName": "牛仔裤"
  750 + },
  751 + {
  752 + "attribute": 1,
  753 + "brandId": 1422,
  754 + "brandName": "心飞扬",
  755 + "gender": "1",
  756 + "maxSortId": 3,
  757 + "maxSortName": "裤装",
  758 + "middleSortId": 27,
  759 + "middleSortName": "牛仔裤",
  760 + "picImgUrl": "",
  761 + "productName": "大衣",
  762 + "productSkn": 51198296,
  763 + "retailPrice": 495,
  764 + "returnCoin": 0,
  765 + "salesPrice": 495,
  766 + "smallSortId": 130,
  767 + "smallSortName": "牛仔裤"
  768 + },
  769 + {
  770 + "attribute": 1,
  771 + "brandId": 1422,
  772 + "brandName": "心飞扬",
  773 + "gender": "1",
  774 + "maxSortId": 3,
  775 + "maxSortName": "裤装",
  776 + "middleSortId": 27,
  777 + "middleSortName": "牛仔裤",
  778 + "picImgUrl": "",
  779 + "productName": "大衣",
  780 + "productSkn": 51198297,
  781 + "retailPrice": 495,
  782 + "returnCoin": 0,
  783 + "salesPrice": 495,
  784 + "smallSortId": 130,
  785 + "smallSortName": "牛仔裤"
  786 + },
  787 + {
  788 + "attribute": 1,
  789 + "brandId": 1422,
  790 + "brandName": "心飞扬",
  791 + "gender": "1",
  792 + "maxSortId": 3,
  793 + "maxSortName": "裤装",
  794 + "middleSortId": 27,
  795 + "middleSortName": "牛仔裤",
  796 + "picImgUrl": "",
  797 + "productName": "长裤",
  798 + "productSkn": 51198287,
  799 + "retailPrice": 495,
  800 + "returnCoin": 0,
  801 + "salesPrice": 495,
  802 + "smallSortId": 130,
  803 + "smallSortName": "牛仔裤"
  804 + },
  805 + {
  806 + "attribute": 1,
  807 + "brandId": 1422,
  808 + "brandName": "心飞扬",
  809 + "gender": "1",
  810 + "maxSortId": 3,
  811 + "maxSortName": "裤装",
  812 + "middleSortId": 27,
  813 + "middleSortName": "牛仔裤",
  814 + "picImgUrl": "",
  815 + "productName": "长裤",
  816 + "productSkn": 51198288,
  817 + "retailPrice": 495,
  818 + "returnCoin": 0,
  819 + "salesPrice": 495,
  820 + "smallSortId": 130,
  821 + "smallSortName": "牛仔裤"
  822 + },
  823 + {
  824 + "attribute": 1,
  825 + "brandId": 1422,
  826 + "brandName": "心飞扬",
  827 + "gender": "1",
  828 + "maxSortId": 3,
  829 + "maxSortName": "裤装",
  830 + "middleSortId": 27,
  831 + "middleSortName": "牛仔裤",
  832 + "picImgUrl": "",
  833 + "productName": "长裤",
  834 + "productSkn": 51198289,
  835 + "retailPrice": 495,
  836 + "returnCoin": 0,
  837 + "salesPrice": 495,
  838 + "smallSortId": 130,
  839 + "smallSortName": "牛仔裤"
  840 + }
  841 + ],
  842 + "page": 1,
  843 + "size": 10,
  844 + "total": 223703,
  845 + "totalPage": 22371
  846 + },
  847 + "md5": "68e7e09515aec025162017290acf73d8",
  848 + "message": "NetSale Information List."
  849 +}
  850 +
  851 +```
  852 +
  853 +
  854 +# 新增搭配信息
  855 +
  856 +> 接口名: `/collocation/insertCollocation`
  857 +
  858 +### 入参
  859 +{"productSkn":50000055, "imageUrl":"imageUrl","content":"content","orderBy":1,"infoStr":"[{"id":50017821,"width":"295","height":"394","top":"151","left":"230","label":"50017821"}]"}
  860 +
  861 +-------------------------
  862 +|属性名称|类型|例子|说明|是否必填|
  863 +|--------|----|----|----|--------|
  864 +|productSkn|number||商品skn||
  865 +|imageUrl|字符串||图片URL||
  866 +|content|字符串||搭配介绍||
  867 +|orderBy|number||顺序值|从1开始|
  868 +|infoStr|json字符串||搭配的方位信息||
  869 +
  870 +---------------------
  871 +
  872 +### 返回
  873 +
  874 +``` json
  875 +{
  876 + "code": 200,
  877 + "data": [],
  878 + "md5": "d751713988987e9331980363e24189ce",
  879 + "message": "insert collocation success."
  880 +}
  881 +
  882 +```
  883 +
  884 +
  885 +# 修改搭配信息
  886 +
  887 +> 接口名: `/collocation/insertCollocation`
  888 +
  889 +### 入参
  890 +{"id":1 "productSkn":50000055, "imageUrl":"imageUrl","content":"content","orderBy":1,"infoStr":"[{"id":50017821,"width":"295","height":"394","top":"151","left":"230","label":"50017821"}]"}
  891 +
  892 +-------------------------
  893 +|属性名称|类型|例子|说明|是否必填|
  894 +|--------|----|----|----|--------|
  895 +|id|number||搭配的id|必填|
  896 +|imageUrl|字符串||图片URL||
  897 +|content|字符串||搭配介绍||
  898 +|orderBy|number||顺序值|从1开始|
  899 +|infoStr|json字符串||搭配的方位信息||
  900 +
  901 +---------------------
  902 +
  903 +### 返回
  904 +
  905 +``` json
  906 +{
  907 + "code": 200,
  908 + "data": [],
  909 + "md5": "d751713988987e9331980363e24189ce",
  910 + "message": "update collocation success."
  911 +}
  912 +
  913 +```
  914 +
  915 +
  916 +# 删除搭配信息
  917 +
  918 +> 接口名: `/collocation/delCollocationById`
  919 +
  920 +### 入参
  921 +{"param":28952 }
  922 +
  923 +-------------------------
  924 +|属性名称|类型|例子|说明|是否必填|
  925 +|--------|----|----|----|--------|
  926 +|id|number||搭配的id|必填|
  927 +
  928 +---------------------
  929 +
  930 +### 返回
  931 +
  932 +``` json
  933 +{
  934 + "code": 200,
  935 + "data": [],
  936 + "md5": "d751713988987e9331980363e24189ce",
  937 + "message": "delete collocation success."
  938 +}
  939 +
  940 +```
  941 +
  942 +
  943 +# 获取单个搭配信息
  944 +
  945 +> 接口名: `/collocation/selectCollocationById`
  946 +
  947 +### 入参
  948 +{"param":28952 }
  949 +
  950 +-------------------------
  951 +|属性名称|类型|例子|说明|是否必填|
  952 +|--------|----|----|----|--------|
  953 +|id|number||搭配的id|必填|
  954 +
  955 +---------------------
  956 +
  957 +### 返回
  958 +
  959 +``` json
  960 +{
  961 + "code": 200,
  962 + "data": {
  963 + "content": "content1",
  964 + "createTime": 1457083379,
  965 + "id": 28952,
  966 + "imageUrl": "http:///goodsimgimageUrl1?imageView/1/w/150/h/150",
  967 + "info": [
  968 + {
  969 + "height": 394,
  970 + "id": 50017831,
  971 + "label": "50017821",
  972 + "left": 230,
  973 + "top": 151,
  974 + "width": 299
  975 + }
  976 + ],
  977 + "orderBy": 1,
  978 + "productSkn": 50000055
  979 + },
  980 + "md5": "a375479b786f4c747d39c6066f4d147e",
  981 + "message": "query collocation success."
  982 +}
  983 +
  984 +```
  985 +
  986 +
  987 +
  988 +# 单独维护封面信息
  989 +
  990 +> 接口名: `/product/manageProductImg`
  991 +
  992 +### 入参
  993 +{"goodsImagesReq" : {"goodsImagesBoList":"[{'productSkc':7661 ,'productSkn':50000055, 'imageUrl':'imageUrl', 'orderBy':2, 'genderCover':2,'isDefault':'Y'}]", "productSkc":7661 ,"productSkn":50000055}}
  994 +
  995 +-------------------------
  996 +|属性名称|类型|例子|说明|是否必填|
  997 +|--------|----|----|----|--------|
  998 +|goodsImagesBoList|json字符串||封面信息genderCover(性别) 默认封面0 男1 女2 isDefault 是否是skc默认图片 id 当此为修改的封面则必填否则认为为新增 |必填|
  999 +|productSkc|number||商品skc|设置默认skc时填写|
  1000 +|productSkn|number||商品skn|设置默认skc时填写|
  1001 +
  1002 +---------------------
  1003 +
  1004 +### 返回
  1005 +
  1006 +``` json
  1007 +{
  1008 + "code": 200,
  1009 + "data": [],
  1010 + "md5": "d751713988987e9331980363e24189ce",
  1011 + "message": "维护封面信息成功."
  1012 +}
  1013 +
  1014 +```
  1015 +
  1016 +
  1017 +
  1018 +# 单独排序信息
  1019 +
  1020 +> 接口名: `/product/saveSearchSort`
  1021 +
  1022 +### 入参
  1023 +{"searchSortList": "[{'id':1333857,'productSkn':50000055,'modelId':2,'projectId':1,'intValue':22},{'productSkn':50000055,'modelId':3,'projectId':1,'intValue':44}]"}
  1024 +
  1025 +-------------------------
  1026 +|属性名称|类型|例子|说明|是否必填|
  1027 +|--------|----|----|----|--------|
  1028 +|searchSortList|json字符串||productSkn必填 id 当此为修改的封面则必填否则认为为新增 modelId 品牌排序填“1”,奥莱排序填“2,”,搜索排序填“3”) projectId 填写1 |必填|
  1029 +
  1030 +---------------------
  1031 +
  1032 +### 返回
  1033 +
  1034 +``` json
  1035 +{
  1036 + "code": 200,
  1037 + "data": [],
  1038 + "md5": "d751713988987e9331980363e24189ce",
  1039 + "message": "保存排序信息成功"
  1040 +}
  1041 +
  1042 +```
  1043 +
  1044 +
  1045 +
  1046 +# 网销信息详情
  1047 +
  1048 +> 接口名: `/product/getNetSaleInfo`
  1049 +
  1050 +### 入参
  1051 +{"param":50000055}
  1052 +
  1053 +-------------------------
  1054 +|属性名称|类型|例子|说明|是否必填|
  1055 +|--------|----|----|----|--------|
  1056 +|param|数字型||productSkn|必填|
  1057 +
  1058 +---------------------
  1059 +
  1060 +### 返回
  1061 +
  1062 +``` json
  1063 +{
  1064 + "code": 200,
  1065 + "data": {
  1066 + "baseProductInfo": {
  1067 + "baseProduct": {
  1068 + "ageLevel": "1",
  1069 + "attribute": 1,
  1070 + "brandFolder": 0,
  1071 + "brandId": 175,
  1072 + "cnAlphabet": "TuanYiFuGuHuaWenManBenTuAnNiuPiZhiBiJiBen",
  1073 + "createTime": 1308904880,
  1074 + "editTime": 0,
  1075 + "expectArrivalTime": 0,
  1076 + "expectShelfTime": 0,
  1077 + "factoryCode": "",
  1078 + "gender": "3",
  1079 + "goodsSeason": 0,
  1080 + "goodsYears": 0,
  1081 + "isAdvance": "N",
  1082 + "isDown": "N",
  1083 + "isJit": "N",
  1084 + "isLimitbuy": "N",
  1085 + "isLimited": "N",
  1086 + "isPromotionalGifts": "N",
  1087 + "isRetrieval": "N",
  1088 + "isSales": "Y",
  1089 + "isSpecial": "N",
  1090 + "limitEndTime": 0,
  1091 + "limitStartTime": 0,
  1092 + "maxSortId": 10,
  1093 + "middleSortId": 101,
  1094 + "outletsSetting": "B",
  1095 + "pattern": "1",
  1096 + "productName": "新的商品名称",
  1097 + "productSkn": 50000055,
  1098 + "productStyle": "个性,原创,创意,办公,家居",
  1099 + "salableTime": "0",
  1100 + "seasons": "",
  1101 + "seriesId": 0,
  1102 + "shopId": 0,
  1103 + "smallSortId": 111,
  1104 + "sortId": 0,
  1105 + "style": "9",
  1106 + "supplierId": 0
  1107 + }
  1108 + },
  1109 + "collocationList": [
  1110 + {
  1111 + "content": "content1",
  1112 + "createTime": 1457083379,
  1113 + "id": 28952,
  1114 + "imageUrl": "http:///goodsimgimageUrl1?imageView/1/w/150/h/150",
  1115 + "orderBy": 1,
  1116 + "productSkn": 50000055
  1117 + }
  1118 + ],
  1119 + "goodsImagesList": [
  1120 + {
  1121 + "colorId": 11,
  1122 + "createTime": 0,
  1123 + "factoryCode": "NB T-BOOK 0084NB",
  1124 + "goodsColorImage": "/2011/06/24/13/02e571a64cea3ea8e734f8f0aae790fb4f.jpg",
  1125 + "goodsImagesList": [
  1126 + {
  1127 + "angle": 0,
  1128 + "genderCover": 2,
  1129 + "id": 3,
  1130 + "imageUrl": "imageUrl",
  1131 + "isDefault": "Y",
  1132 + "orderBy": 2,
  1133 + "productSkc": 7661,
  1134 + "productSkn": 50000055,
  1135 + "status": 1
  1136 + },
  1137 + {
  1138 + "angle": 0,
  1139 + "genderCover": 2,
  1140 + "id": 4,
  1141 + "imageUrl": "imageUrl",
  1142 + "isDefault": "Y",
  1143 + "orderBy": 2,
  1144 + "productSkc": 7661,
  1145 + "productSkn": 50000055,
  1146 + "status": 1
  1147 + },
  1148 + {
  1149 + "angle": 0,
  1150 + "genderCover": 2,
  1151 + "id": 5,
  1152 + "imageUrl": "imageUrl",
  1153 + "isDefault": "Y",
  1154 + "orderBy": 2,
  1155 + "productSkc": 7661,
  1156 + "productSkn": 50000055,
  1157 + "status": 1
  1158 + },
  1159 + {
  1160 + "angle": 0,
  1161 + "genderCover": 2,
  1162 + "id": 6,
  1163 + "imageUrl": "imageUrl",
  1164 + "isDefault": "Y",
  1165 + "orderBy": 2,
  1166 + "productSkc": 7661,
  1167 + "productSkn": 50000055,
  1168 + "status": 1
  1169 + },
  1170 + {
  1171 + "angle": 0,
  1172 + "genderCover": 2,
  1173 + "id": 7,
  1174 + "imageUrl": "imageUrl",
  1175 + "isDefault": "Y",
  1176 + "orderBy": 2,
  1177 + "productSkc": 7661,
  1178 + "productSkn": 50000055,
  1179 + "status": 1
  1180 + }
  1181 + ],
  1182 + "goodsName": "粉",
  1183 + "isDefault": "Y",
  1184 + "productSkc": 7661,
  1185 + "productSkn": 50000055,
  1186 + "status": 0,
  1187 + "updateTime": 0
  1188 + }
  1189 + ],
  1190 + "goodsList": [
  1191 + {
  1192 + "colorId": 11,
  1193 + "createTime": 0,
  1194 + "factoryCode": "NB T-BOOK 0084NB",
  1195 + "goodsColorImage": "/2011/06/24/13/02e571a64cea3ea8e734f8f0aae790fb4f.jpg",
  1196 + "goodsName": "粉",
  1197 + "goodsSizeList": [
  1198 + {
  1199 + "barCode": "",
  1200 + "createTime": 0,
  1201 + "isSuppled": "Y",
  1202 + "marketPrice": 0,
  1203 + "productSkc": 7661,
  1204 + "productSkn": 50000055,
  1205 + "productSku": 102174,
  1206 + "salePrice": 0,
  1207 + "sizeId": 199,
  1208 + "sizeName": "F",
  1209 + "status": 1,
  1210 + "storageNum": 0,
  1211 + "updateTime": 0
  1212 + }
  1213 + ],
  1214 + "isDefault": "Y",
  1215 + "productSkc": 7661,
  1216 + "productSkn": 50000055,
  1217 + "status": 0,
  1218 + "updateTime": 0
  1219 + }
  1220 + ],
  1221 + "modelTryList": [
  1222 + {
  1223 + "avatar": "",
  1224 + "fitModelBo": {
  1225 + "feel": "合适",
  1226 + "feel_id": 1,
  1227 + "fit_remark": "",
  1228 + "fit_size": "S",
  1229 + "model_id": 19
  1230 + },
  1231 + "modelName": "sdf",
  1232 + "vitalStatistics": ""
  1233 + }
  1234 + ],
  1235 + "modelcardList": [
  1236 + {
  1237 + "modelImg": "http://img12.static.yhbimg.com/modelCard/2012/03/09/14/025511fa559a15b2f38a5dddb80d92e251.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  1238 + "modelName": "郭冠",
  1239 + "modelcardId": 5,
  1240 + "productId": 5675,
  1241 + "size": "M",
  1242 + "sortId": 1
  1243 + },
  1244 + {
  1245 + "modelImg": "http://img12.static.yhbimg.com/modelCard/2012/03/12/11/02597b14bb6c8abcd650dcaee67dd1de4e.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  1246 + "modelName": "杨亚运",
  1247 + "modelcardId": 7,
  1248 + "productId": 5675,
  1249 + "sortId": 1
  1250 + }
  1251 + ],
  1252 + "productExtBo": {
  1253 + "brandModel": "11",
  1254 + "brandSeries": "33",
  1255 + "isHostsell": "N",
  1256 + "isNew": "N",
  1257 + "makeCrafts": "122,122",
  1258 + "outSaleTime": 12,
  1259 + "phrase": "商品简评",
  1260 + "productDesc": "商品描述信息111111",
  1261 + "productSkn": 50000055,
  1262 + "recommend": "2213213",
  1263 + "salesPhrase": "促销短语",
  1264 + "searchKeys": "搜索词1,搜索词2 以英文逗号分隔",
  1265 + "sellChannels": "1,2,3",
  1266 + "sellChannelsList": [
  1267 + "1",
  1268 + "2",
  1269 + "3"
  1270 + ],
  1271 + "shopIdList": [
  1272 + 1,
  1273 + 3,
  1274 + 23
  1275 + ],
  1276 + "vedioUrl": "videoUrlvideoUrlvideoUrlvideoUrl"
  1277 + },
  1278 + "searchSortList": [
  1279 + {
  1280 + "createTime": 1457146662,
  1281 + "id": 1333856,
  1282 + "intValue": 11,
  1283 + "modelId": 1,
  1284 + "productSkn": 50000055,
  1285 + "projectId": 1,
  1286 + "stringValue": "22"
  1287 + },
  1288 + {
  1289 + "createTime": 1457146995,
  1290 + "id": 1333857,
  1291 + "intValue": 22,
  1292 + "modelId": 2,
  1293 + "productSkn": 50000055,
  1294 + "projectId": 1,
  1295 + "stringValue": "22"
  1296 + },
  1297 + {
  1298 + "createTime": 1457147062,
  1299 + "id": 1333858,
  1300 + "intValue": 44,
  1301 + "modelId": 3,
  1302 + "productSkn": 50000055,
  1303 + "projectId": 1,
  1304 + "stringValue": "22"
  1305 + },
  1306 + {
  1307 + "createTime": 1457350159,
  1308 + "id": 1333865,
  1309 + "intValue": 22,
  1310 + "modelId": 2,
  1311 + "productSkn": 50000055,
  1312 + "projectId": 1
  1313 + }
  1314 + ],
  1315 + "sizeInfo": {
  1316 + "sizeAttributeBos": [
  1317 + {
  1318 + "attributeName": "厚",
  1319 + "id": 31
  1320 + },
  1321 + {
  1322 + "attributeName": "宽",
  1323 + "id": 30
  1324 + },
  1325 + {
  1326 + "attributeName": "长",
  1327 + "id": 29
  1328 + }
  1329 + ],
  1330 + "sizeBoList": [
  1331 + {
  1332 + "id": 199,
  1333 + "sizeName": "F",
  1334 + "sortAttributes": [
  1335 + {
  1336 + "id": 31,
  1337 + "sizeValue": "2.1"
  1338 + },
  1339 + {
  1340 + "id": 30,
  1341 + "sizeValue": "14.5"
  1342 + },
  1343 + {
  1344 + "id": 29,
  1345 + "sizeValue": "18.5"
  1346 + }
  1347 + ]
  1348 + }
  1349 + ]
  1350 + }
  1351 + },
  1352 + "md5": "0715c67f137835dbffa419c66161be5f",
  1353 + "message": "NetSale Info."
  1354 +}
  1355 +
  1356 +```
  1357 +
  1358 +
  1359 +
  1360 +# 批量导入品牌款型系列
  1361 +
  1362 +> 接口名: `/batch/import`
  1363 +
  1364 +### 入参
  1365 +{"type":"brandProperty", "file":"具体文件流"}
  1366 +
  1367 +-------------------------
  1368 +|属性名称|类型|例子|说明|是否必填|
  1369 +|--------|----|----|----|--------|
  1370 +|type|字符串||brandProperty|必填|
  1371 +|file|文件||下载url为"/common/brandModelSeries.xlsx"|必填|
  1372 +
  1373 +---------------------
  1374 +
  1375 +### 返回
  1376 +
  1377 +``` json
  1378 +{
  1379 + "code": 200,
  1380 + "data": {},
  1381 + "message": "导入成功"
  1382 +}
  1383 +
  1384 +```
  1385 +
  1386 +
  1387 +# 批量导入排序
  1388 +
  1389 +> 接口名: `/batch/import`
  1390 +
  1391 +### 入参
  1392 +{"type":"searchSort", "file":"具体文件流"}
  1393 +
  1394 +-------------------------
  1395 +|属性名称|类型|例子|说明|是否必填|
  1396 +|--------|----|----|----|--------|
  1397 +|type|字符串||searchSort|必填|
  1398 +|file|文件||下载url为"/common/searchSort.xlsx"|必填|
  1399 +
  1400 +---------------------
  1401 +
  1402 +### 返回
  1403 +
  1404 +``` json
  1405 +{
  1406 + "code": 200,
  1407 + "data": {},
  1408 + "message": "导入成功"
  1409 +}
  1410 +
433 ``` 1411 ```