Authored by caoyan

Update seckill.md

... ... @@ -29,3 +29,374 @@ code为200即为成功且只会返回200,每次都会有响应结果。
"message": "Product List."
}
```
## product.getBasicProductBySku##
请求方式:POST
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|param|String|否|926992|null|商品sku|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8083/product/product/getBasicProductBySku
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"arrivalTime": 0,
"attribute": 1,
"auditingTime": 0,
"brandId": 68,
"cnAlphabet": "LACOSTESPORTSWEARRENEVAULTSTAR30SRW4107",
"createTime": 1445837977,
"editTime": 1448968188,
"elements": "",
"erpProductId": 51164996,
"expectArrivalTime": null,
"firstShelveTime": 1448968188,
"gender": "2",
"id": 294447,
"instalmentId": 0,
"isAdvance": "N",
"isAuditing": "Y",
"isCollect": "",
"isDown": "N",
"isHot": "N",
"isInstalment": "0",
"isJit": "N",
"isLimitBuy": "N",
"isLimited": "N",
"isNew": "Y",
"isOutlets": "N",
"isPayDelivery": "2",
"isPromotion": 102,
"isRecommend": "N",
"isReplenishment": 0,
"isRetrieval": "N",
"isSales": "Y",
"isSpecial": "N",
"isSeckill": "N",
"material": "",
"maxSortId": 6,
"middleSortId": 44,
"pattern": "",
"phrase": "LACOSTE鞋履回归品牌传统,重回1933年RENE LACOSTE先生最爱的网球场风格,在悠久的品牌传承中汲取灵感,将曾经最受欢迎的款式带 回人们的视线。自从René首次用标志性的醒目鳄鱼图案刺绣装饰赛服起,LACOSTE便开始引领运动与时尚的潮流。LACOSTE新品参考了其网球传统,但并非简单的复制,而是遵循了尊重传统、探索未来的理念。该系列精心考虑了现代实用性,轻松而舒适地完成城市到球场的转换。LACOSTE的鞋履系列,“灵感源自网球场,始于1933年”,突显了“生活是最美的运动”的理念,将LACOSTE的功能和优雅的完美 融合,并注入日常生活。鞋面材质:牛皮革,织物面。",
"productName": "LACOSTE SPORTSWEAR RENE VAULTSTAR 休闲鞋",
"productUrl": "",
"salableTime": "0",
"salesPhrase": "LACOSTE鞋履回归品牌传统,重回1933年RENE LACOSTE先生最爱的网球场风格,在悠久的品牌传承中汲取灵感,将曾经最受欢迎的款式带 回人们的视线。自从René首次用标志性的醒目鳄鱼图案刺绣",
"seasons": "autumn,winter",
"seriesId": 0,
"shelveTime": 1452304200,
"shopId": 0,
"smallSortId": 147,
"sortId": 0,
"status": 1,
"storage": 46,
"style": "",
"supplierId": 0
}
```
## product.queryProductBasicInfo##
请求方式:POST
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|param|String|否|294447|null|商品id|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8083/product/product/queryProductBasicInfo
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"appType": 0,
"arrivalTime": 0,
"attribute": 1,
"auditingTime": 0,
"brand": null,
"brandId": 68,
"categoryBoList": [],
"cnAlphabet": "LACOSTESPORTSWEARRENEVAULTSTAR30SRW4107",
"commentBoWrapper": null,
"consultBoWrapper": null,
"createTime": 1445837977,
"editTime": 1448968188,
"elements": "",
"erpProductId": 51164996,
"expectArrivalTime": null,
"firstShelveTime": 1448968188,
"folderId": 0,
"gender": "2",
"goodsList": [],
"id": 294447,
"instalmentId": 0,
"isAdvance": "N",
"isAuditing": "Y",
"isCollect": "",
"isDown": "N",
"isEdit": 1,
"isHot": "N",
"isInstalment": "0",
"isJit": "N",
"isLimitBuy": "N",
"isLimited": "N",
"isNew": "Y",
"isOutlets": "N",
"isPayDelivery": "2",
"isPromotion": 102,
"isRecommend": "N",
"isReplenishment": 0,
"isRetrieval": "N",
"isSales": "Y",
"isSpecial": "N",
"isSeckill": "N",
"limitProductCode": "",
"limitProductSku": "",
"material": "",
"maxSortId": 6,
"middleSortId": 44,
"pattern": "",
"phrase": "LACOSTE鞋履回归品牌传统,重回1933年RENE LACOSTE先生最爱的网球场风格,在悠久的品牌传承中汲取灵感,将曾经最受欢迎的款式带 回人们的视线。自从René首次用标志性的醒目鳄鱼图案刺绣装饰赛服起,LACOSTE便开始引领运动与时尚的潮流。LACOSTE新品参考了其网球传统,但并非简单的复制,而是遵循了尊重传统、探索未来的理念。该系列精心考虑了现代实用性,轻松而舒适地完成城市到球场的转换。LACOSTE的鞋履系列,“灵感源自网球场,始于1933年”,突显了“生活是最美的运动”的理念,将LACOSTE的功能和优雅的完美 融合,并注入日常生活。鞋面材质:牛皮革,织物面。",
"productName": "LACOSTE SPORTSWEAR RENE VAULTSTAR 休闲鞋",
"productPriceBo": null,
"productTagBoList": [],
"productUrl": "",
"promotionBoList": [],
"salableTime": "0",
"saleStatus": 0,
"salesPhrase": "LACOSTE鞋履回归品牌传统,重回1933年RENE LACOSTE先生最爱的网球场风格,在悠久的品牌传承中汲取灵感,将曾经最受欢迎的款式带 回人们的视线。自从René首次用标志性的醒目鳄鱼图案刺绣",
"seasons": "autumn,winter",
"sellChannels": "0",
"seriesId": 0,
"shelveTime": 1452304200,
"shopId": 0,
"showStatus": 0,
"showWeightAndHeight": false,
"smallSortId": 147,
"sortId": 0,
"status": 1,
"storage": 46,
"style": "",
"supplierId": 0,
"vipDiscountType": 1
}
```
## product.queryProductShopCartBySkuIds##
请求方式:POST
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|params|String|否|926992|null|商品sku|
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8083/product/product/queryProductShopCartBySkuIds
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
[
{
"brandBo": {
"brandAlif": "L",
"brandBanner": "/2014/05/15/10/0154072ddfe3ce6c2aa2df0d0735017596.jpg",
"brandCertificate": "",
"brandDomain": "lacoste",
"brandGroupId": 0,
"brandIco": "http://img13.static.yhbimg.com/brandLogo/2015/12/09/16/02b2ae27dfc83144d8d03cae48dda7d591.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brandIntro": "<p><span style=\"color: #000000\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;\n&nbsp; 一九二三年Lacoste 创办人,世界网球名将Rene\nLacoste正在波士顿代表法国参加戴维斯杯。当时Lacoste与他的队长打赌,如果他在比赛中获胜,队长便要送他一个鳄鱼皮箱。虽然Lacoste没有赢得皮箱,但是他在比赛中像鳄鱼一样勇猛,故得到“鳄鱼先生”(Le\ncrocodile)的称号。回到法国以后,Lacoste一位朋友为他制作了一条鳄鱼,并贴于他的夹克上,一个流行于世的标志从此诞生。</span></p>\n<p><img alt=\"\" src=\n\"http://img01.static.yohobuy.com/brandContentImg/2011/06/26/15/01a1869bc8bb4fbeb171429287fd16141d.jpg\"\nstyle=\"width: 671px; height: 312px\" /></p>\n<p><span style=\"color: #000000\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;\n&nbsp;1933年,法国著名网球运动员Rene\nLacoste创立了Lacoste品牌,创立了真正的运动时尚。70年过去了,Lacoste一直坚持它独有的风格,崇尚坚韧,反对炫耀,提倡优雅与个性的发展,轻松舒适,安然惬意而又自由舒展。</span></p>\n<p><img alt=\"\" src=\n\"http://img02.static.yohobuy.com/brandContentImg/2011/06/26/15/020df9b18be32d839f6adb66ade14e1ecb.jpg\"\nstyle=\"width: 660px; height: 462px\" /></p>\n<div><span style=\"color: #000000\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;\n&nbsp;\nLacoste以精致的面料选择,多变的色彩搭配,变化丰富的款式,展现了青春活力和时尚一族的魅力,同时更充分彰显出您的身份和地位。在款式上,LACOSTE推出风格多样的主题和系列。它包括了含有五个主题的俱乐部系列和运动休闲装系列,以及运动系列和中心系列。这使得LACOSTE迸发出一种新的活力,并将汇聚所有追逐时尚的目光。在设计上,沿用了轻松、年轻化的方针,更注重细节,带来浓郁的青春气息。今天这个全世界人为之着迷大半个世纪的法国鳄鱼品牌,仍然保持着年轻、时尚的个性,并依旧吸引着无数自信的、具有卓越穿着品位的人士。</span></div>\n<div>&nbsp;</div>\n<p><span style=\"color: #000000\">&nbsp;&nbsp; &nbsp;<img alt=\"\" src=\n\"http://buy.yoho.cn/NPIC/2011/6/17/17/d71c50e371ff4eb9808098e1780d2605.jpg\"\nstyle=\"cursor: default\" /></span></p>\n",
"brandKeyword": "Lacoste,休闲鞋,法国鳄鱼,鳄鱼",
"brandLevel": 1,
"brandName": "LACOSTE",
"brandNameCn": "法国鳄鱼",
"brandNameEn": "LACOSTE",
"brandOutline": "Lacoste品牌整体理念——“运动态度,对待生活”(“体育精神、对待生活”)",
"brandScale": 1,
"brandStyle": "时尚,街头,潮流,运动,欧美,现代,自然,摩登",
"brandTemplate": 1,
"brandTypeId": 1,
"brandUrl": "www.lacoste.com.cn/",
"countryFlag": "",
"countryId": 2,
"couponsBo": [],
"hotKeyword": "Lacoste",
"id": 68,
"isHot": "N",
"isIndependent": "N",
"isPayDelivery": "1",
"orderBy": 97,
"parentId": 0,
"relateBrandIds": "",
"shelvesBrandTime": 0,
"staticContentCode": "20120223-110501",
"status": 1
},
"goodsBo": {
"colorCode": "",
"colorId": 2,
"colorImage": "http://img11.static.yhbimg.com/goodsimg/2015/12/01/08/01ba9b5248544be78396a2515e5afd0da1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"colorName": "黑色",
"colorValue": "",
"factorySn": "",
"firstShelveTime": 1448967276,
"goodsImagesList": [],
"goodsName": "黑色",
"goodsSizeBoList": [],
"id": 377335,
"isDefault": "N",
"isDown": "N",
"matchExplain": "",
"productId": 294447,
"productSkc": 293113,
"status": 1,
"viewNum": 0
},
"goodsSizeBo": {
"attributeId": "",
"createTime": 0,
"goodsId": null,
"goodsSizeLocated": null,
"goodsSizeSkuId": null,
"goodsSizeStorageNum": null,
"id": 104,
"orderBy": 810,
"sizeName": "38码",
"skuStatus": null,
"sortId": 0,
"updateTime": 0
},
"productActivityId": null,
"productBasicInfoBo": {
"arrivalTime": 0,
"attribute": 1,
"auditingTime": 0,
"brandId": 68,
"cnAlphabet": "LACOSTESPORTSWEARRENEVAULTSTAR30SRW4107",
"createTime": 1445837977,
"editTime": 1448968188,
"elements": "",
"erpProductId": 51164996,
"expectArrivalTime": null,
"firstShelveTime": 1448968188,
"gender": "2",
"id": 294447,
"instalmentId": 0,
"isAdvance": "N",
"isAuditing": "Y",
"isCollect": "",
"isDown": "N",
"isHot": "N",
"isInstalment": "0",
"isJit": "N",
"isLimitBuy": "N",
"isLimited": "N",
"isNew": "Y",
"isOutlets": "N",
"isPayDelivery": "1",
"isPromotion": 102,
"isRecommend": "N",
"isReplenishment": 0,
"isRetrieval": "N",
"isSales": "Y",
"isSpecial": "N",
"isSeckill": "Y",
"material": "",
"maxSortId": 6,
"middleSortId": 44,
"pattern": "",
"phrase": "LACOSTE鞋履回归品牌传统,重回1933年RENE LACOSTE先生最爱的网球场风格,在悠久的品牌传承中汲取灵感,将曾经最受欢迎的款式带 回人们的视线。自从René首次用标志性的醒目鳄鱼图案刺绣装饰赛服起,LACOSTE便开始引领运动与时尚的潮流。LACOSTE新品参考了其网球传统,但并非简单的复制,而是遵循了尊重传统、探索未来的理念。该系列精心考虑了现代实用性,轻松而舒适地完成城市到球场的转换。LACOSTE的鞋履系列,“灵感源自网球场,始于1933年”,突显了“生活是最美的运动”的理念,将LACOSTE的功能和优雅的完美 融合,并注入日常生活。鞋面材质:牛皮革,织物面。",
"productName": "LACOSTE SPORTSWEAR RENE VAULTSTAR 休闲鞋",
"productUrl": "",
"salableTime": "0",
"salesPhrase": "LACOSTE鞋履回归品牌传统,重回1933年RENE LACOSTE先生最爱的网球场风格,在悠久的品牌传承中汲取灵感,将曾经最受欢迎的款式带 回人们的视线。自从René首次用标志性的醒目鳄鱼图案刺绣",
"seasons": "autumn,winter",
"seriesId": 0,
"shelveTime": 1452304200,
"shopId": 0,
"smallSortId": 147,
"sortId": 0,
"status": 1,
"storage": 46,
"style": "",
"supplierId": 0
},
"productPriceBo": {
"formatMarketPrice": "¥591.00",
"formatSalesPrice": "¥590.00",
"formatSpecialPrice": "¥0.00",
"marketPrice": 591,
"productCoinNum": 0,
"productId": 294447,
"productSkn": 51164996,
"salesPrice": 590,
"specialPrice": 0,
"studentCoinNum": null,
"studentCoinRate": 0,
"studentDiscountRate": 0.9,
"studentPrice": 189,
"seckillPrice": 100,
"vipDiscount": 1,
"vipDiscountType": 3,
"vipPrice": "0.00",
"vipPrices": [],
"yohoCoinNum": 0
},
"storageBo": {
"createTime": 0,
"erpSkuId": 926992,
"frozenNum": 0,
"goodsDimensionId": 104,
"goodsId": 377335,
"marketPrice": 590,
"productId": 294447,
"productSkn": null,
"salePrice": 590,
"salesNum": 0,
"status": 1,
"storageNum": 12,
"seckillStorage": 5
"storeroom": 1,
"updateTime": 0
}
}
]
```
## product.decreaseSeckillStorageBySkuId##
请求方式:POST
#### 请求参数
{
"updateStorageRequest": {
"skuId": 926992,
"storageNum": 1
}
}
注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8083/product/product/decreaseSeckillStorageBySkuId
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"code": 200,
"success": true
}
```
... ...