|
|
# 限购商品管理接口服务定义
|
|
|
# 基础商品接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 导出限购商品提醒接口
|
|
|
# 新增基础商品接口
|
|
|
|
|
|
> 接口名: `/batch/export`
|
|
|
> 接口名: `/platform/product/addBaseProduct`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|queryConf|string|2016022517335568|限购商品码,多个以竖线分隔|是|
|
|
|
|type|string|limitProductReminder|导出类型,此处是固定值,不能变|是|
|
|
|
|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]
|
|
|
|
|
|
```
|
|
|
|
...
|
...
|
|