Authored by liqingzhong

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

# Conflicts:
#	inferface-document/shops/shops_decorator.md
# 基础商品接口服务定义
---------------------
# 新增基础商品接口
> 接口名: `/platform/product/addBaseProduct`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|productSkn|Integer|51198438|产品SKN号|新增时不用赋值|
|productName|string|商品名称|产品名称|是|
|brandId|Short|1234|品牌ID|是|
|shopId|Short|1234|店铺ID|否|
|supplierId|Short|1234|供应商ID|否|
|maxSortId|Short|1234|产品一级分类ID|是|
|middleSortId|Short|1234|产品二级分类ID|是|
|smallSortId|Short|1234|产品三级分类ID|是|
|sortId|Short|1234|产品四级分类ID|否|
|gender|string|1|性别(1男、2女、3通用)|是|
|models|string|1111|款型|否|
|isLimited|string|Y|是否限量,Y:是,N:否|否|
|isAdvance|string|Y|是否预售,Y:是,N:否|否|
|isPromotionalGifts|string|Y|是否是促销礼品,Y:是,N:否|否|
|isSpecial|string|Y|是否特价,Y:是,N:否|否|
|attribute|Byte|1|商品属性(1普通、2赠品等)|是|
|retailPriceStr|String|100|零售价(市场价或吊牌价)|是|
|salesPriceStr|string|100|销售价|是|
|stock|Short|10|预售库存|否|
|expectArrivalTimeStr|string|2016-03-22 12:00:00|预计到货时间字符串|是|
|goodsYears|Short|2016|货品年|否|
|goodsSeason|Short|0|货品季,0:四季1:春2:夏3:秋4:冬5:春夏6:秋冬|否|
|productStyle|string|1|风格|否|
|productTag|string|商品话题短语|商品话题短语|否|
|grade|string|1|重点款型(是:1,否:0)|否|
|brandFolder|string|1111|品牌款型|否|
|isOutLets|string|'B'|'Y','N','B' 是否奥莱,默认品牌设置|否|
|isVip|string|'B'|是否VIP,Y:开启,N:关闭,B:品牌设置|否|
|factoryCode|string|1111|厂家编号|否|
|ageLevel|string|1|年龄层(1成人 2大童 3小童 逗号分隔)|否|
|isLimitbuy|string|Y|是否限购,Y:限购,N:非限购|否|
|expectShelfTimeStr|string|2016-03-22 12:00:00|预计上架时间字符串|否|
|seasons|string|1|适销季|否|
|isSupplied|string|1|是否补货 1可补货,2不可补货 3部分可补货|否|
|founder|Integer|111|创建人id|是|
|baseGoodInfoStr|string|1|商品goods信息,传字符串,接口层再json解析|是|
|productStandardRelationStr|string|1|商品非销售属性,传字符串,接口层再json解析|否|
---------------------
### 接口接收消息体
BaseProductBO [
productName=SIP牛仔裤,
brandId=1527,
shopId=601,
supplierId=0,
maxSortId=3,
middleSortId=27,
smallSortId=130,
gender=1,
isLimited=N,
isPromotionalGifts=N,
attribute=1,
retailPriceStr=299,
salesPriceStr=299,
goodsYears=2016,
goodsSeason=0,
grade=0,
factoryCode=5699,
ageLevel=2|3,
isLimitbuy=N,
expectShelfTimeStr=2016-03-23 00:00:00,
yohoCoin=0,
baseGoodInfoStr=[{"factoryCode":"限售关心","goodsColorImage":"","goodsName":"蓝色(+)","colorId":7,"goodsSizeList":[{"sizeId":"327","salePrice":"299","barCode":"","isSuppled":"N","presaleStorageNum":"","sizeName":"120"},{"sizeId":"343","salePrice":"299","barCode":"","isSuppled":"N","presaleStorageNum":"","sizeName":"150"}],"factoryGoodsName":"蓝色"}]
]
### 接口返回消息体
BaseProductBO [productSkn=51198426, productName=SIP牛仔裤, productImageUrl=null, cnAlphabet=SIPniuziku, brandId=1527, brandName=null, shopId=601, shopName=null, supplierId=0, supplierName=null, isJit=N, maxSortId=3, middleSortId=27, smallSortId=130, sortId=0, sizeMaxSortId=null, maxSortName=null, sizeMiddleSortId=null, middleSortName=null, sizeSmallSortId=null, smallSortName=null, seriesId=0, gender=1, models=null, material=null, style=null, styleList=null, pattern=null, patternList=null, isLimited=N, isAdvance=null, isMainPush=null, isPromotionalGifts=N, isSpecial=null, isSales=null, isRetrieval=null, isDown=null, attribute=1, remarks=null, replenishmentFactor=null, soldoutRate=null, retailPrice=299, retailPriceStr=299, salesPrice=299, salesPriceStr=299, stock=null, stockoutRate=null, expectArrivalTime=null, expectArrivalTimeStr=null, goodsYears=2016, goodsSeason=0, productStyle=null, productElements=null, productTag=null, grade=0, brandFolder=null, isAuditing=null, isOutLets=null, isVip=null, factoryCode=5699, ageLevel=2|3, isLimitbuy=N, limitStartTime=null, limitStartTimeStr=null, limitEndTime=null, limitEndTimeStr=null, expectShelfTime=1458662400, expectShelfTimeStr=2016-03-23 00:00:00, seasons=null, salableTime=null, yohoCoin=0, isSupplied=null, createTime=null, founder=2794, founderName=null, editId=null, editName=null, editTime=null, auditPassId=null, auditPassName=null, auditPassTime=null, auditFailId=null, auditFailName=null, auditFailTime=null, status=null, baseGoodList=[BaseGoodBO [productSkc=336337, productSkn=51198426, goodsName=蓝色(+), goodsColorImage=, colorId=7, modelCode=null, isDefault=null, createTime=null, factoryCode=限售关心, updateTime=null, status=null, goodsSizeList=[BaseSingleBo [productSku=1047533, productSkn=51198426, productSkc=336337, marketPrice=null, salePrice=299, factoryCode=null, storageNum=null, sizeId=327, sizeName=120, isSuppled=N, barCode=, createTime=null, updateTime=null, status=null], BaseSingleBo [productSku=1047534, productSkn=51198426, productSkc=336337, marketPrice=null, salePrice=299, factoryCode=null, storageNum=null, sizeId=343, sizeName=150, isSuppled=N, barCode=, createTime=null, updateTime=null, status=null]], goodsImagesList=null]], baseGoodInfoStr=[{"factoryCode":"限售关心","goodsColorImage":"","goodsName":"蓝色(+)","colorId":7,"goodsSizeList":[{"sizeId":"327","salePrice":"299","barCode":"","isSuppled":"N","presaleStorageNum":"","sizeName":"120"},{"sizeId":"343","salePrice":"299","barCode":"","isSuppled":"N","presaleStorageNum":"","sizeName":"150"}],"factoryGoodsName":"蓝色"}], rejectReason=null, operateInfo=null]
---------------------
# 查看基础商品列表接口
> 接口名: `/platform/product/getBaseProductList`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|productSkn|Integer|51198438|产品SKN号|否|
|productName|string|商品名称|产品名称|否|
|brandId|Short|1234|品牌ID|否|
|shopId|Short|1234|店铺ID|否|
|supplierId|Short|1234|供应商ID|否|
|maxSortId|Short|1234|产品一级分类ID|否|
|middleSortId|Short|1234|产品二级分类ID|否|
|smallSortId|Short|1234|产品三级分类ID|否|
|sortId|Short|1234|产品四级分类ID|否|
|gender|string|1|性别(1男、2女、3通用)|否|
|isLimited|string|Y|是否限量,Y:是,N:否|否|
|isAdvance|string|Y|是否预售,Y:是,N:否|否|
|isPromotionalGifts|string|Y|是否是促销礼品,Y:是,N:否|否|
|isOutLets|string|'B'|'Y','N','B' 是否奥莱,默认品牌设置|否|
|isVip|string|'B'|是否VIP,Y:开启,N:关闭,B:品牌设置|否|
|ageLevel|string|1|年龄层(1成人 2大童 3小童 逗号分隔)|否|
|isLimitbuy|string|Y|是否限购,Y:限购,N:非限购|否|
|founderName|String|111|创建人名称|否|
|page|int|1|当前页|是|
|size|int|10|每页显示条数|是|
---------------------
### 接口接收消息体
[supplierId=<null>,productSkn=<null>,productName=<null>,founder=<null>,shopId=<null>,brandId=<null>,isOutLets=<null>,isAdvance=<null>,gender=<null>,maxSortId=<null>,middleSortId=<null>,smallSortId=<null>,sortId=<null>,isJit=<null>,isAuditing=<null>,page=1,size=10,start=0]
### 接口返回消息体
{
"code": 200,
"data": {
"list": [
{
"ageLevel": "1",
"attribute": 1,
"auditFailTime": 0,
"auditPassId": 2794,
"auditPassName": "wxtest1",
"auditPassTime": 1458647086,
"baseGoodList": [
{
"colorId": 90,
"createTime": 1458647027,
"factoryCode": "1221",
"factoryGoodsName": "21",
"goodsColorImage": "http://img12.static.yhbimg.com\goodsimg/2016/03/22/19/0257a05ae92dd665f3a42894a4e7135896.jpg",
"goodsName": "jpgs(+)",
"goodsSizeList": [
{
"barCode": "12",
"createTime": 1458647027,
"isSuppled": "N",
"marketPrice": 21,
"presaleStorageNum": 0,
"productSkc": 336352,
"productSkn": 51198439,
"productSku": 1047563,
"salePrice": 21,
"sizeId": 267,
"updateTime": 1458647027
}
],
"productSkc": 336352,
"productSkn": 51198439,
"updateTime": 1458647027
}
],
"brandFolder": 0,
"brandId": 1555,
"brandName": "请不要用我的品牌,谢谢",
"createTime": 1458647027,
"editTime": 1458647027,
"expectArrivalTime": 0,
"expectShelfTime": 1458595500,
"factoryCode": "",
"founder": 2794,
"founderName": "wxtest1",
"gender": "1",
"goodsSeason": 0,
"goodsYears": 2016,
"grade": "0",
"isAdvance": "N",
"isAuditing": 200,
"isJit": "N",
"isLimitbuy": "N",
"isLimited": "N",
"isMainPush": "N",
"isOutLets": "B",
"isPromotionalGifts": "N",
"isSupplied": 2,
"isVip": "B",
"limitEndTime": 0,
"limitStartTime": 0,
"maxSortId": 1,
"maxSortName": "上衣",
"middleSortId": 12,
"middleSortName": "衬衫",
"operateInfo": "wxtest1 2016-03-22 19:44:46",
"productName": "请不要用我的品牌,谢谢衬衫",
"productSkn": 51198439,
"productTag": "12122121",
"rejectReason": "",
"retailPrice": 21,
"salesPrice": 21,
"seasons": "",
"seriesId": 0,
"shopId": 0,
"sizeMaxSortId": 0,
"sizeMiddleSortId": 0,
"sizeSmallSortId": 0,
"smallSortId": 115,
"smallSortName": "衬衫",
"sortId": 0,
"supplierId": 0,
"yohoCoin": 0
}
],
"page": 1,
"size": 10,
"total": 119,
"totalPage": 12
},
"md5": "23163c6c8ac58fc85f9cad364c165483",
"message": "获取列表成功."
}
---------------------
# 查看基础商品详情接口
> 接口名: `/platform/product/getBaseProduct`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|productSkn|Integer|51198438|产品SKN号|是|
---------------------
### 接口接收消息体
[productSkn=51198438]
### 接口返回消息体
{
"code": 200,
"data": {
"ageLevel": "1",
"attribute": 1,
"auditFailTime": 0,
"auditPassId": 2794,
"auditPassTime": 1458638622,
"baseGoodList": [
{
"colorId": 8,
"createTime": 1458638679,
"factoryCode": "111",
"factoryGoodsName": "111",
"goodsColorImage": "",
"goodsName": "紫色(+)",
"goodsSizeList": [
{
"barCode": "11",
"createTime": 1458638679,
"isSuppled": "N",
"marketPrice": 111,
"presaleStorageNum": 0,
"productSkc": 336351,
"productSkn": 51198438,
"productSku": 1047562,
"salePrice": 11,
"sizeId": 32,
"sizeName": "15寸pro",
"updateTime": 1458638708
}
],
"productSkc": 336351,
"productSkn": 51198438,
"updateTime": 1458638708
}
],
"brandId": 1504,
"brandName": "胖头鱼骨汤",
"createTime": 1458638677,
"editId": 2794,
"editTime": 1458638612,
"expectArrivalTime": 0,
"expectShelfTime": 1457884800,
"expectShelfTimeStr": "2016-03-14 00:00:00",
"founder": 2794,
"gender": "1",
"goodsSeason": 0,
"goodsYears": 2016,
"grade": "0",
"isAuditing": 200,
"isJit": "Y",
"isLimitbuy": "N",
"isLimited": "N",
"isPromotionalGifts": "N",
"limitEndTime": 0,
"limitStartTime": 0,
"maxSortId": 241,
"maxSortName": "数码周边",
"middleSortId": 242,
"middleSortName": "数码配件",
"productName": "胖头鱼骨汤数码配件",
"productSkn": 51198438,
"productStandardRelationBoList": [
{
"productId": 51198438,
"productSkn": 51198438,
"standardId": 32,
"standardType": 1,
"standardVal": "制作工艺2"
}
],
"rejectReason": "",
"retailPrice": 111,
"retailPriceStr": "111.00",
"salesPrice": 111,
"salesPriceStr": "111.00",
"seriesId": 0,
"shopId": 587,
"shopName": "水产市场",
"sizeMaxSortId": 0,
"sizeMiddleSortId": 0,
"sizeSmallSortId": 0,
"smallSortId": 243,
"smallSortName": "数码配件",
"sortId": 0,
"supplierId": 1388,
"supplierName": "预生产环境",
"yohoCoin": 0
},
"md5": "79dafee0ee070b9b7fbae52f7b1648bc",
"message": "查看基础商品"
}
# 修改基础商品接口(审核前修改、审核后修改)
> 接口名: `/platform/product/updateBaseProduct`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|productSkn|Integer|51198438|产品SKN号|是|
|productName|string|商品名称|产品名称|是|
|brandId|Short|1234|品牌ID|是|
|shopId|Short|1234|店铺ID|否|
|supplierId|Short|1234|供应商ID|否|
|maxSortId|Short|1234|产品一级分类ID|是|
|middleSortId|Short|1234|产品二级分类ID|是|
|smallSortId|Short|1234|产品三级分类ID|是|
|sortId|Short|1234|产品四级分类ID|否|
|gender|string|1|性别(1男、2女、3通用)|是|
|models|string|1111|款型|否|
|isLimited|string|Y|是否限量,Y:是,N:否|否|
|isAdvance|string|Y|是否预售,Y:是,N:否|否|
|isPromotionalGifts|string|Y|是否是促销礼品,Y:是,N:否|否|
|isSpecial|string|Y|是否特价,Y:是,N:否|否|
|attribute|Byte|1|商品属性(1普通、2赠品等)|是|
|retailPriceStr|String|100|零售价(市场价或吊牌价)|是|
|salesPriceStr|string|100|销售价|是|
|stock|Short|10|预售库存|否|
|expectArrivalTimeStr|string|2016-03-22 12:00:00|预计到货时间字符串|是|
|goodsYears|Short|2016|货品年|否|
|goodsSeason|Short|0|货品季,0:四季1:春2:夏3:秋4:冬5:春夏6:秋冬|否|
|productStyle|string|1|风格|否|
|productTag|string|商品话题短语|商品话题短语|否|
|grade|string|1|重点款型(是:1,否:0)|否|
|brandFolder|string|1111|品牌款型|否|
|isOutLets|string|'B'|'Y','N','B' 是否奥莱,默认品牌设置|否|
|isVip|string|'B'|是否VIP,Y:开启,N:关闭,B:品牌设置|否|
|factoryCode|string|1111|厂家编号|否|
|ageLevel|string|1|年龄层(1成人 2大童 3小童 逗号分隔)|否|
|isLimitbuy|string|Y|是否限购,Y:限购,N:非限购|否|
|expectShelfTimeStr|string|2016-03-22 12:00:00|预计上架时间字符串|否|
|seasons|string|1|适销季|否|
|isSupplied|string|1|是否补货 1可补货,2不可补货 3部分可补货|否|
|founder|Integer|111|创建人id|是|
|baseGoodInfoStr|string|1|商品goods信息,传字符串,接口层再json解析|是|
|productStandardRelationStr|string|1|商品非销售属性,传字符串,接口层再json解析|否|
---------------------
### 接口接收消息体
BaseProductBO [productSkn=51198426, productName=SIP牛仔裤, productImageUrl=null, cnAlphabet=null, brandId=1527, brandName=null, shopId=601, shopName=null, supplierId=0, supplierName=null, isJit=null, maxSortId=3, middleSortId=27, smallSortId=130, sortId=null, sizeMaxSortId=null, maxSortName=null, sizeMiddleSortId=null, middleSortName=null, sizeSmallSortId=null, smallSortName=null, seriesId=null, gender=1, models=null, material=null, style=null, styleList=null, pattern=null, patternList=null, isLimited=N, isAdvance=null, isMainPush=null, isPromotionalGifts=N, isSpecial=null, isSales=null, isRetrieval=null, isDown=null, attribute=1, remarks=null, replenishmentFactor=null, soldoutRate=null, retailPrice=null, retailPriceStr=299.00, salesPrice=null, salesPriceStr=299.00, stock=null, stockoutRate=null, expectArrivalTime=null, expectArrivalTimeStr=null, goodsYears=2016, goodsSeason=0, productStyle=null, productElements=null, productTag=null, grade=0, brandFolder=null, isAuditing=100, isOutLets=null, isVip=null, factoryCode=5699, ageLevel=2|3, isLimitbuy=N, limitStartTime=null, limitStartTimeStr=null, limitEndTime=null, limitEndTimeStr=null, expectShelfTime=null, expectShelfTimeStr=2016-03-23 00:00:00, seasons=null, salableTime=null, yohoCoin=0, isSupplied=null, createTime=null, founder=null, founderName=null, editId=null, editName=null, editTime=null, auditPassId=null, auditPassName=null, auditPassTime=null, auditFailId=null, auditFailName=null, auditFailTime=null, status=null, baseGoodList=null, baseGoodInfoStr=[{"colorId":7,"createTime":1458614538,"factoryCode":"限售关心","factoryGoodsName":"蓝色","goodsColorImage":"http://img13.static.yhbimg.com/goodsimg/2016/03/22/10/02a42a8612000501d9470dc01e54e8e110.jpg","goodsName":"蓝色(+)","goodsSizeList":[{"barCode":"","createTime":1458614538,"isSuppled":"N","marketPrice":299,"presaleStorageNum":0,"productSkc":336337,"productSkn":51198426,"productSku":1047533,"salePrice":299,"sizeId":327,"sizeName":"120","updateTime":1458614538},{"barCode":"","createTime":1458614538,"isSuppled":"N","marketPrice":299,"presaleStorageNum":0,"productSkc":336337,"productSkn":51198426,"productSku":1047534,"salePrice":299,"sizeId":343,"sizeName":"150","updateTime":1458614538}],"productSkc":336337,"productSkn":51198426,"updateTime":1458614538,"_num":0,"rowid":"wqt_NaN_0","__index":0}], rejectReason=null, operateInfo=null]
### 接口返回消息体
BaseProductBO [productSkn=51198426, productName=SIP牛仔裤, productImageUrl=null, cnAlphabet=null, brandId=1527, brandName=null, shopId=601, shopName=null, supplierId=0, supplierName=null, isJit=null, maxSortId=3, middleSortId=27, smallSortId=130, sortId=null, sizeMaxSortId=null, maxSortName=null, sizeMiddleSortId=null, middleSortName=null, sizeSmallSortId=null, smallSortName=null, seriesId=null, gender=1, models=null, material=null, style=null, styleList=null, pattern=null, patternList=null, isLimited=N, isAdvance=null, isMainPush=null, isPromotionalGifts=N, isSpecial=null, isSales=null, isRetrieval=null, isDown=null, attribute=1, remarks=null, replenishmentFactor=null, soldoutRate=null, retailPrice=null, retailPriceStr=299.00, salesPrice=null, salesPriceStr=299.00, stock=null, stockoutRate=null, expectArrivalTime=null, expectArrivalTimeStr=null, goodsYears=2016, goodsSeason=0, productStyle=null, productElements=null, productTag=null, grade=0, brandFolder=null, isAuditing=100, isOutLets=null, isVip=null, factoryCode=5699, ageLevel=2|3, isLimitbuy=N, limitStartTime=null, limitStartTimeStr=null, limitEndTime=null, limitEndTimeStr=null, expectShelfTime=null, expectShelfTimeStr=2016-03-23 00:00:00, seasons=null, salableTime=null, yohoCoin=0, isSupplied=null, createTime=null, founder=null, founderName=null, editId=null, editName=null, editTime=null, auditPassId=null, auditPassName=null, auditPassTime=null, auditFailId=null, auditFailName=null, auditFailTime=null, status=null, baseGoodList=null, baseGoodInfoStr=[{"colorId":7,"createTime":1458614538,"factoryCode":"限售关心","factoryGoodsName":"蓝色","goodsColorImage":"http://img13.static.yhbimg.com/goodsimg/2016/03/22/10/02a42a8612000501d9470dc01e54e8e110.jpg","goodsName":"蓝色(+)","goodsSizeList":[{"barCode":"","createTime":1458614538,"isSuppled":"N","marketPrice":299,"presaleStorageNum":0,"productSkc":336337,"productSkn":51198426,"productSku":1047533,"salePrice":299,"sizeId":327,"sizeName":"120","updateTime":1458614538},{"barCode":"","createTime":1458614538,"isSuppled":"N","marketPrice":299,"presaleStorageNum":0,"productSkc":336337,"productSkn":51198426,"productSku":1047534,"salePrice":299,"sizeId":343,"sizeName":"150","updateTime":1458614538}],"productSkc":336337,"productSkn":51198426,"updateTime":1458614538,"_num":0,"rowid":"wqt_NaN_0","__index":0}], rejectReason=null, operateInfo=null]
---------------------
# 批量审核通过基础商品
> 接口名: `/platform/product/batchAuditPassBaseProduct`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|productSkn|Integer|51198438|产品SKN号|是|
---------------------
### 接口接收消息体
ProductSknStatusReq [productSknList=[51198427], targetStatus=null, rejectReason=null]
### 接口返回消息体
```
... ...
... ... @@ -20,44 +20,47 @@
{
"code": 200,
"data": {
"list": [],
"page": 2,
"plat_list": [
"list": [
{
"createTime": 1430300615,
"platformFlag": "iphone",
"code": "8c48745a39373d621bf5fd80edf59b5e",
"createTime": 1430725440,
"id": 16,
"matchCode": "",
"name": "男装底部切换到女装首页banner",
"platformId": 1,
"platformName": "yohoApp",
"status": 0
}
],
"resources_list": [
"sortId": 2,
"sortName": "男首"
},
{
"code": "02568b6042510e4be739cc688dc7d6ae",
"createTime": 1444448085,
"id": 279,
"name": "逛.pc网站首页右侧广告位(创意生活)",
"platformId": 5,
"platformName": "web",
"sortId": 4,
"sortName": "逛列表页"
}
],
"size": 10,
"sort_id": 4,
"sort_list": [
"code": "c63939b2ad458e9cb51147940c1da2e5",
"createTime": 1430725950,
"id": 17,
"matchCode": "",
"name": "女首进入男首的banner",
"platformId": 1,
"platformName": "yohoApp",
"sortId": 3,
"sortName": "女首"
},
{
"createTime": 1430304722,
"code": "b714c25f503ab4e6bc143a42d1404cbb",
"createTime": 1430809519,
"id": 18,
"matchCode": "",
"name": "Plus 国际优选推荐头部广告",
"platformId": 1,
"sortId": 2,
"sortName": "男首",
"status": 1
"platformName": "yohoApp",
"sortId": 5,
"sortName": "Plus/Star"
}
],
"total": 15,
"totalPage": 2
"page": 1,
"size": 10,
"total": 300,
"totalPage": 30
},
"md5": "c88f34a1ec20168782345b0c6754b83d",
"md5": "e2fb724dc52c04d4e4cca72f3726e971",
"message": "操作成功"
}
... ... @@ -509,16 +512,45 @@ result:
``` json
{
"code": 200,
"data": [
{
"createTime": 1430300615,
"platformFlag": "iphone",
"platformId": 1,
"platformName": "yohoApp",
"status": 1
}
],
"md5": "b01118ada14ad7204d1182c3fa75563a",
"data": {
"platforms": [
{
"createTime": 1458719791,
"platformFlag": "321",
"platformId": 14,
"platformName": "321",
"status": 1
},
{
"createTime": 1432882973,
"platformFlag": "hf",
"platformId": 9,
"platformName": "wap",
"status": 1
},
{
"createTime": 1431670386,
"platformFlag": "ipad",
"platformId": 6,
"platformName": "yohoipad",
"status": 1
},
{
"createTime": 1430735334,
"platformId": 5,
"platformName": "web",
"status": 1
},
{
"createTime": 1430300615,
"platformFlag": "iphone",
"platformId": 1,
"platformName": "yohoApp",
"status": 1
}
]
},
"md5": "f01bdc91842f4255acf31ea4dd61f3ac",
"message": "操作成功"
}
... ...
... ... @@ -87,8 +87,8 @@ create table product_shop_relation(
);
Alter table product_shop_relation add primary key(product_skn, shop_id);
-- 标识商品是否是新平台的商品
alter table yh_shops.product add column source_flag enum('0', '1') default '0' COMMENT '新平台发布的商品为1 原来则为0';
... ... @@ -123,7 +123,7 @@ Alter table product_shop_relation add primary key(product_skn, shop_id);
-- 3 数据需要特殊割接
-- 3.1 上架的时候同步插入product_id 数据割接 老数据需要通过product_id 查询product_skn 插入数据库
-- product_timing
-- product_timing(不需要)
... ...
... ... @@ -5,7 +5,7 @@
## 资讯列表查询
> 接口名: 'article/getList'
> 接口名: '/guang/article/getList'
### 入参
... ... @@ -54,7 +54,7 @@
## 获取作者列表接口
> 接口名: 'article/getAuthorList'
> 接口名: '/guang/article/getAuthorList'
### 入参
... ... @@ -84,7 +84,7 @@
## 获取所有分类接口
> 接口名: 'article/getSortList'
> 接口名: '/guang/article/getSortList'
### 入参
... ... @@ -108,7 +108,7 @@
## 编辑时资讯详情接口
> 接口名: 'article/getArticleDetail'
> 接口名: '/guang/article/getArticleDetail'
### 入参
... ... @@ -148,7 +148,7 @@
## 新增资讯接口
> 接口名: 'article/addArticle'
> 接口名: '/guang/article/addArticle'
### 入参
... ... @@ -180,7 +180,7 @@
## 修改/发布(关闭)/推荐(取消推荐)资讯接口
> 接口名: 'article/updateArticle'
> 接口名: '/guang/article/updateArticle'
### 入参
... ... @@ -199,6 +199,8 @@
|articleType|int|1|文章类型|
|adsImgSize|String|10881088|广告尺寸|
|url|String|{"action":"go.activity","url":"http://feature.yohobuy.com/0/0/373/index.html"|链接|
|status|int|1(-1)|发布(关闭)|
|isRecommend|int|1(0)|推荐(取消推荐)|
---------------------
### 返回
... ... @@ -213,7 +215,7 @@
## 删除资讯接口
> 接口名: 'article/delArticle'
> 接口名: '/guang/article/delArticle'
### 入参
... ... @@ -235,7 +237,7 @@
## 定时发布资讯接口
> 接口名: 'article/timePublish'
> 接口名: '/guang/article/timePublish'
### 入参
... ... @@ -267,23 +269,23 @@
"code":200,
"message":"请求成功",
"data": {
"genderItems": [{ //性别
"genderEnum": [{ //性别
"value": "",
"name": ""
}],
"publishStatusItems": [{ //发布状态
"publishStatusEnum": [{ //发布状态
"value": "",
"name": ""
}],
"articleTypeItems": [{ //文章类型
"articleTypeEnum": [{ //文章类型
"value": "",
"name": ""
}],
"coverImageTypeItems": [{ //封面图片类型
"coverImageTypeEnum": [{ //封面图片类型
"value": "",
"name": ""
}],
"adsImgSizeItems": [{ //广告尺寸
"adsImgSizeEnum": [{ //广告尺寸
"value": "",
"name": ""
}]
... ...
... ... @@ -5,7 +5,7 @@
## 文章分类列表查询
> 接口名: 'article/sort/getList'
> 接口名: '/guang/article/sort/getList'
### 入参
... ... @@ -37,7 +37,7 @@
## 添加分类接口
> 接口名: 'article/sort/addSort'
> 接口名: '/guang/article/sort/addSort'
### 入参
... ... @@ -64,7 +64,7 @@
## 编辑分类接口
> 接口名: 'article/sort/updateSort'
> 接口名: '/guang/article/sort/updateSort'
### 入参
... ... @@ -91,7 +91,7 @@
## 编辑时分类详情接口
> 接口名: 'article/sort/getDetail'
> 接口名: '/guang/article/sort/getDetail'
### 入参
... ... @@ -122,7 +122,7 @@
## 删除分类接口
> 接口名: 'article/sort/delSort'
> 接口名: '/guang/article/sort/delSort'
### 入参
... ...
标签管理接口服务定义
---------------------
## 标签列表查询
> 接口名: '/guang/tags/getList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|tagName|String|运动|标签名称|
|classifyId|int|1|分类名称|
|isHot|int|1|是否热门|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": {
"list": [
{
"id": "1", //标签ID
"tagName": "运动", //标签名称
"classifyId": "2", //分类ID
"isHot": "1", //是否热门,0非热门,1热门
"status": "1", //状态,0关闭,1开启
"createTime": "1432113792"//创建时间
}
]
}
}
```
## 添加标签接口
> 接口名: '/guang/tags/addTag'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|tagName|String|运动|标签名称|
|classifyId|int|1|分类ID|
|isHot|int|1|是否热门|
|status|int|1|是否启用|
---------------------
### 返回
``` json
{
"code":200,
"message":"添加成功!"
}
```
## 编辑标签接口
> 接口名: '/guang/tags/updateTag'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|标签ID|
|tagName|String|运动|标签名称|
|classifyId|int|1|分类ID|
|isHot|int|1|是否热门|
|status|int|1|是否启用|
---------------------
### 返回
``` json
{
"code":200,
"message":"修改成功!"
}
```
## 编辑时标签详情接口
> 接口名: '/guang/tags/getDetail'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|标签id|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": {
"id": "1", //标签ID
"tagName": "运动", //标签名称
"classifyId": "2", //分类ID
"isHot": "1", //是否热门,0非热门,1热门
"status": "1", //状态,0关闭,1开启
"createTime": "1432113792"//创建时间
}
}
```
## 删除标签接口
> 接口名: '/guang/tags/delTag'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|1|标签id|
---------------------
### 返回
``` json
{
"code":200,
"message":"删除成功!"
}
```
## 新增或编辑时获取标签分类列表
> 接口名: '/guang/tagSort/getTagItems'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|status|int|1|开启状态的分类|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": [
{
"id": "1",
"text":"搭配风格"
}
]
}
```
\ No newline at end of file
... ...
作者管理接口服务定义
---------------------
## 作者列表查询
> 接口名: '/guang/author/getList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|页码|
|size|int|20|每页条数|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": {
"list": [
{
"uid": "8168248", //作者id
"username": "DREAMER", //作者名称
"avatar":"http://img12.static.yhbimg.com/yhb-img02/2015/12/14/08/0254c49772ec7f5ea99b632c95cf500cb1.jpg?imageView/{mode}/w/{width}/h/{height}", //作者头像
"authorDesc": "潮流初学者", //作者描述
"createTime": "1450081680" //创建时间
}
]
}
}
```
## 添加作者接口
> 接口名: '/guang/author/addAuthor'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|username|String|搭配风格|作者名称|
|avatar|String|http://img11.static.yhbimg.com/yhb-img02/2015/10/09/08/0188c0c1deaef401e66331c82feeef962e.jpg|作者头像|
|authorDesc|String|潮流初学者|作者描述|
---------------------
### 返回
``` json
{
"code":200,
"message":"添加成功!"
}
```
## 编辑作者接口
> 接口名: '/guang/author/updateAuthor'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|uid|int|8168248|作者id|
|username|String|搭配风格|作者名称|
|avatar|String|http://img11.static.yhbimg.com/yhb-img02/2015/10/09/08/0188c0c1deaef401e66331c82feeef962e.jpg|作者头像|
|authorDesc|String|潮流初学者|作者描述|
---------------------
### 返回
``` json
{
"code":200,
"message":"修改成功!"
}
```
## 编辑时作者详情接口
> 接口名: '/guang/author/getDetail'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|uid|int|8168253|作者id|
---------------------
### 返回
``` json
{
"code":200,
"message":"操作成功",
"data": {
"uid": "8168248", //作者id
"username": "DREAMER", //作者姓名
"avatar":"http://img12.static.yhbimg.com/yhb-img02/2015/12/14/08/0254c49772ec7f5ea99b632c95cf500cb1.jpg?imageView/{mode}/w/{width}/h/{height}", //作者头像
"authorDesc": "潮流初学者", //作者描述
"createTime": "1450081680" //创建时间
}
}
```
## 删除作者接口
> 接口名: '/guang/author/delAuthor'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|uid|int|8168253|作者id|
---------------------
### 返回
``` json
{
"code":200,
"message":"删除成功!"
}
```
```
\ No newline at end of file
... ...
... ... @@ -5,7 +5,7 @@
## 标签分类列表查询
> 接口名: '/tags/sort/getList'
> 接口名: '/guang/tags/sort/getList'
### 入参
... ... @@ -35,7 +35,7 @@
## 添加分类接口
> 接口名: '/tags/sort/addSort'
> 接口名: '/guang/tags/sort/addSort'
### 入参
... ... @@ -60,7 +60,7 @@
## 编辑分类接口
> 接口名: '/tags/sort/updateSort'
> 接口名: '/guang/tags/sort/updateSort'
### 入参
... ... @@ -85,7 +85,7 @@
## 编辑时分类详情接口
> 接口名: '/tags/sort/getDetail'
> 接口名: '/guang/tags/sort/getDetail'
### 入参
... ... @@ -115,7 +115,7 @@
## 删除分类接口
> 接口名: '/tags/sort/delSort'
> 接口名: '/guang/tags/sort/delSort'
### 入参
... ...
# 产品试穿信息管理
---------------------
## 查询产品图片列表信息
> 接口名:`productExtraInfo/queryProdExtraList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|234234|产品skn |
|productName|string|阿迪| 产品名称|
|productSku|int|234234| 产品sku|
---------------------
---------------------
### 返回
``` json
请求样例:
{
"productSkn":"50000055"
}
正常返回:
{
"code": 200,
"data": {
"list": [
{
"brandId": 175,
"brandName": "团一",
"defaultImg": "http://img13.static.yhbimg.com/goodsimg/2011/06/24/13/02e571a64cea3ea8e734f8f0aae790fb4d.jpg",
"productId": 5675,
"productName": "团一复古花纹满本图案牛皮纸笔记本",
"productSkn": 50000055
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "9b566aa98b1973d71026605411ea62d4",
"message": "拍摄产品信息列表"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": ""
}
```
## 查询试穿产品附信息(试穿信息,是否测量信息)
> 接口名:`productExtraInfo/queryProdExtraInfo`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|526456456|产品skn 必传 |
---------------------
### 返回
``` json
请求样例: 新增
{
"productSkn":50000055
}
返回
{
"code": 200,
"data": {
"tryInfoBoMap": {
"19": {
"feel_id": 1,
"fit_remark": "二位",
"fit_size": "F",
"model_id": 19
},
"21": {
"feel_id": 3,
"fit_remark": "无色",
"fit_size": "F",
"model_id": 21
},
"25": {
"feel_id": 2,
"fit_remark": "二位v",
"fit_size": "F",
"model_id": 25
}
},
"tryModelList": [
{
"avatar": "http://img12.static.yhbimg.com\modelCard/2015/08/11/07/0220d27e95d08daf3f4cb8f91fbf6c1379.png",
"dressSize": "",
"englishName": "",
"height": 163,
"id": 19,
"modelName": "Cherry Lee",
"modelType": 2,
"nationality": "",
"shoeSize": "",
"status": 1,
"vitalStatistics": "77/67/86",
"weight": 42
},
{
"avatar": "http://img10.static.yhbimg.com\modelCard/2015/07/23/04/01defebb15086c6a757ded83d7567f3d3d.jpg",
"dressSize": "",
"englishName": "",
"height": 182,
"id": 27,
"modelName": "Jeff",
"modelType": 2,
"nationality": "",
"shoeSize": "",
"status": 1,
"vitalStatistics": "87,80,97",
"weight": 70
},
{
"avatar": "http://img11.static.yhbimg.com\modelCard/2015/09/07/03/01329cb56fdf4ee424b2969978a34a96ad.png",
"dressSize": "",
"englishName": "",
"height": 166,
"id": 29,
"modelName": "Yio",
"modelType": 2,
"nationality": "",
"shoeSize": "",
"status": 1,
"vitalStatistics": "80,66,90",
"weight": 52
}
]
},
"md5": "fd9eebc2e9af663d65c8a8b4d4336ce8",
"message": "模特试穿信息"
}
```
## 新增修改模特试穿信息
> 接口名:`/productExtraInfo/saveProdExtraInfo`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|234234|产品skn |
|productModelTry|array|"19": { "feel_id": 1,"fit_remark": "sdfsf", "fit_size": "F","model_id": 19}| 模特试穿信息|
---------------------
### 返回
``` json
请求样例: 新增
{
"productSkn":"50000055",
"productModelTry": {
"19": {
"feel_id": 1,
"fit_remark": "sdfsf",
"fit_size": "F",
"model_id": 19
}
}
}
返回
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "新增产品信息成功"
}
```
... ...
# 产品尺码测量管理
---------------------
## 查询产品尺码列表信息
> 接口名:`productSize/queryProdSizeList`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|234234|产品skn |
|brandId|int|23423| 品牌id|
|productSku|int|234234| 产品sku|
|maxSortId|int|223| 产品大类id|
|arriveStartTime|int|13555322333| 到货开始时间|
|arriveEndTime|int|13655322333| 到货开始时间|
|isMeasure|string|1| Y 已测量 N 未测量 |
---------------------
---------------------
### 返回
``` json
请求样例:
{
"productSkn": 133233
}
正常返回:
{
"code": 200,
"data": {
"list": [
{
"brandId": 106,
"brandName": "outerspace",
"expectArrivalTime": 0,
"gender": "1",
"genderName": "男",
"id": 147157,
"productId": 147157,
"noMeasureIds": [
"1",
"5"
],
"productName": "outerspace 小丑LOGO波点圆舞曲卫衣",
"productSizeReferenceList": [
{
"gender": 1,
"id": 3,
"productSkn": 51088104,
"referenceName": "175/92A",
"sizeId": 201,
"sizeName": "L"
},
{
"gender": 1,
"id": 5,
"productSkn": 51088104,
"referenceName": "170/88A",
"sizeId": 203,
"sizeName": "M"
},
{
"gender": 1,
"id": 7,
"productSkn": 51088104,
"referenceName": "165/84A",
"sizeId": 207,
"sizeName": "S"
},
{
"gender": 1,
"id": 9,
"productSkn": 51088104,
"referenceName": "180/96A",
"sizeId": 211,
"sizeName": "XL"
}
],
"productSkn": 51088104,
"productType": "男生\r\n服配\r\n靴子\r\n",
"sizeRelationsList": [
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "110"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "71"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "71"
}
],
"sizeId": 211,
"sizeName": "XL"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "104"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "68"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "68"
}
],
"sizeId": 201,
"sizeName": "L"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "98"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "66"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "66"
}
],
"sizeId": 203,
"sizeName": "M"
},
{
"prdSizeAttributeBoList": [
{
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567"
},
{
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽"
},
{
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeValue": "96"
},
{
"sizeAttributeId": 5,
"sizeAttributeName": "袖长"
},
{
"sizeAttributeId": 48,
"sizeAttributeName": "前衣长",
"sizeValue": "63"
},
{
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeValue": "63"
}
],
"sizeId": 207,
"sizeName": "S"
}
]
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
},
"md5": "ff48e582cdb6473ff750aa2d4518f412",
"message": "产品测量信息列表"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": ""
}
```
## 查询产品应该要测量的属性列表
> 接口名:`productSize/queryAllProdMeasureInfo``
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|526456456|产品skn 必传 |
---------------------
### 返回
``` json
请求样例: 新增
{ "productSkn":234234234
}
返回
{
"code": 200,
"data": [
{
"productSkn": 50000057,
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 1,
"sizeAttributeName": "后中长134567",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 3,
"sizeAttributeName": "肩宽",
"sizeId": 207,
"sizeName": "S"
},
{
"productSkn": 50000057,
"sizeAttributeId": 4,
"sizeAttributeName": "胸围",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 203,
"sizeName": "M"
},
{
"productSkn": 50000057,
"sizeAttributeId": 49,
"sizeAttributeName": "后衣长",
"sizeId": 207,
"sizeName": "S"
}
],
"md5": "5d0a55a6b686197bf41658a16cbef4fd",
"message": ""
}
```
## 新增或修改产品尺码测量
> 接口名:`productSize/saveProdSizeInfo`
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|productSkn|int|234234|产品skn |
|sizeInfoList|array| [ {"productSkn":50000057, "sizeId":207,"sizeAttributeId":48,"sizeValue":"555", "isMeasure":0 }]| 尺码测量属性|
|productSizeReferList|array| [ { "sizeId":207,"gender":1, "referenceName":"170/80A"}]|参考尺码属性|
|noMeasureIds|array| ["21","213"]|无需测量的尺码id|
---------------------
### 返回
``` json
请求样例: 新增
{
"productSkn":50000057,
"noMeasureIds":["21","213"],
"sizeInfoList":
[ {"productSkn":50000057,
"sizeId":207,
"sizeAttributeId":48,
"sizeValue":"555",
"isMeasure":0
}
],
"productSizeReferList":
[ {
"sizeId":207,
"gender":1,
"referenceName":"170/80A"
}
]
}
返回
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "新增产品信息成功"
}
```
... ...
... ... @@ -240,17 +240,17 @@
```json
{
"shopsId":21,
"brandId":0,
"brandId":1026,
"supplierId":1090
"checkStatus":200,
}
```
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|shopsId |是 |int |21 |店铺编号 |
|brandId |是 |int |0 |品牌编号 |
|checkStatus |否 |int |200 |店铺装修审核状态 |
|supplierId |否 |int |1090 |供应商编号 |
|brandId |否 |int |1026 |品牌编号 |
|checkStatus |是 |int |200 |店铺装修审核状态 |
### 返回
... ... @@ -258,6 +258,8 @@
{
"code": 200,
"data":
... ... @@ -268,72 +270,57 @@
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandName": "BURANDO ENO",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"status": 1
}
],
"checkStatus": 200,
"createTime": 1445909754,
"id": 1,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"status": 0,
"updateTime": 1456128116
},
{
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"brandNameEn": "BURANDO ENO",
"id": 519,
"saleType": 1,
"status": 1
}
],
"checkStatus": 100,
"createTime": 1445909754,
"id": 2,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"createTime": 1448610631,
"id": 25,
"shopsId": 35,
"shopsName": "BURANDO ENO",
"shopsType": 1,
"status": 0,
"updateTime": 1456128116
"updateTime": 1449036789
},
{
"brands":
[
{
"brandDomain": "qianjun",
"brandName": "钱军1",
"brandDomain": "jnby",
"brandName": "JNBY",
"brandNameCn": "",
"brandNameEn": "qianjun",
"id": 1470,
"brandNameEn": "JNBY",
"id": 1026,
"saleType": 1,
"status": 1
}
],
"checkStatus": 200,
"createTime": 1445909754,
"id": 3,
"shopsId": 21,
"shopsName": "jnby by JNBY",
"checkStatus": 100,
"createTime": 1445850968,
"id": 26,
"shopsId": 20,
"shopsName": "JNBY",
"shopsType": 1,
"status": 0,
"updateTime": 1456128116
"updateTime": 1456886841
}
],
"page": 1,
"size": 10,
"total": 3,
"total": 2,
"totalPage": 1
},
"message": "操作成功"
}
```
|参数名 |必填 |类型 |示例值 |描述 |
... ... @@ -382,173 +369,4 @@
"message": "操作成功."
}
```
## 最新上架商品
> `/ShopsDecoratorRest/findNewProductList`
### 入参
| 参数名 | 必填 | 类型 | 示例值 | 描述 |
|---------|------|------|--------|----------|
| shopsId | Y | int | 2 | 店铺 ID |
| size | N | int | 20 | 默认是10 |
### 返回
```json
{
"code": 200,
"data": {
"code": 200,
"data": {
"page": 1,
"page_total": 17768,
"product_list": [
{
"brand_domain": "mrkt",
"brand_id": 89,
"brand_name": "mrkt 马克兔",
"cn_alphabet": "MRKT YiFangKongYiJuBiJiBen",
"default_images": "/2011/06/23/04/01fcb8efc1fea50c61fe71fab3cae82028.jpg",
"edit_time": 1458791369,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "18",
"images_url": "/2011/06/23/04/01fcb8efc1fea50c61fe71fab3cae82028.jpg",
"is_default": "N",
"product_skc": "18",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "Y",
"is_outlets": 2,
"is_promotion": 0,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 72,
"max_sort_id": 10,
"middle_sort_id": 101,
"product_id": 16,
"product_name": "MRKT “房空椅”笔记本",
"product_skn": 50001804,
"sales_num": 12,
"sales_phrase": "",
"sales_price": 36,
"shelve_time": 1458791369,
"small_sort_id": 111,
"status": 1,
"stock_number": 1,
"storage_num": 1,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0
}
],
"total": 53303
},
"message": "Search List."
},
"md5": "d6291c8373c4a1966e08ce8dab5211b5",
"message": "操作成功"
}
```
## 畅销商品
> `/ShopsDecoratorRest/findHotProductList`
### 入参
| 参数名 | 必填 | 类型 | 示例值 | 描述 |
|---------|------|------|--------|----------|
| shopsId | Y | int | 2 | 店铺 ID |
| size | N | int | 20 | 默认是10 |
### 返回
```json
{
"code": 200,
"data": {
"code": 200,
"data": {
"page": 1,
"page_total": 17768,
"product_list": [
{
"brand_domain": "mrkt",
"brand_id": 89,
"brand_name": "mrkt 马克兔",
"cn_alphabet": "MRKT YiFangKongYiJuBiJiBen",
"default_images": "/2011/06/23/04/01fcb8efc1fea50c61fe71fab3cae82028.jpg",
"edit_time": 1458791369,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑",
"color_value": "",
"cover_1": "",
"cover_2": "",
"goods_id": "18",
"images_url": "/2011/06/23/04/01fcb8efc1fea50c61fe71fab3cae82028.jpg",
"is_default": "N",
"product_skc": "18",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "Y",
"is_limited": "N",
"is_new": "Y",
"is_outlets": 2,
"is_promotion": 0,
"is_soon_sold_out": "Y",
"is_special": "N",
"market_price": 72,
"max_sort_id": 10,
"middle_sort_id": 101,
"product_id": 16,
"product_name": "MRKT “房空椅”笔记本",
"product_skn": 50001804,
"sales_num": 12,
"sales_phrase": "",
"sales_price": 36,
"shelve_time": 1458791369,
"small_sort_id": 111,
"status": 1,
"stock_number": 1,
"storage_num": 1,
"vip1_price": 0,
"vip2_price": 0,
"vip3_price": 0,
"vip_discount_type": 3,
"vip_price": 0
}
],
"total": 53303
},
"message": "Search List."
},
"md5": "d6291c8373c4a1966e08ce8dab5211b5",
"message": "操作成功"
}
```
```
\ No newline at end of file
... ...