Authored by chaogeng

添加商品接口

... ... @@ -971,4 +971,139 @@ value: 4
md5: "76591219c2aa4c630515dd50d465cba6",
message: "product comfort"
}
```
## 商品详情接口##
(method=app.product.data)
请求方式:GET
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|-------| -----|-----|-----|-----|----|
|uid|String|是|11084019|null|用户ID|
|product_id|String|是|321819|null|商品id|
|product_skn|String|是|51178553|null|商品skn|
|tags_filter|Integer|是|0|0|过滤标签|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?uid=11084019&product_id=321819&yh_channel=1&screen_size=1080x1776&app_version=4.0.3&os_version=android4.4.2%3APE-TL20&showcomment=Y&v=7&client_secret=e5863045f62d5eab604469a6b4b7895d&client_type=android&gender=1%2C3&method=app.product.data&product_skn=51178553&session_key=cba963d9265806acc486f77e5258dec8
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"attribute": 1,
"brand_info": {
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2016/04/14/14/02c768cf6f801720ea28451cc5fe0aaedd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_id": 763,
"brand_name": "Genanx"
},
"cn_alphabet": "GENANXJ3341MianYi",
"format_market_price": "¥1988.00",
"format_sales_price": "¥598.00",
"goods_list": [
{
"color_id": 2,
"color_image": "http://img13.static.yhbimg.com/goodsimg/2015/12/13/11/02e4d1ca9e4fb0a05fbc47c896dec55546.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"color_name": "黑色",
"goods_id": 413961,
"images_list": [
{
"image_url": "http://img13.static.yhbimg.com/goodsimg/2015/12/13/11/02e4d1ca9e4fb0a05fbc47c896dec55546.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"image_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/06/06/022131fb5d4ae4508ef43cf0cb4e7e08b3.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"image_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/06/06/028200fbc5e15d74b5d3a0022ad0314797.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
}
],
"is_default": "N",
"product_skc": 311271,
"size_list": [
{
"order_by": 1175,
"product_sku": 980760,
"size_id": 203,
"size_name": "M",
"storage_number": 0
},
{
"order_by": 1169,
"product_sku": 980761,
"size_id": 201,
"size_name": "L",
"storage_number": 0
},
{
"order_by": 1163,
"product_sku": 980762,
"size_id": 211,
"size_name": "XL",
"storage_number": 0
},
{
"order_by": 1157,
"product_sku": 980763,
"size_id": 216,
"size_name": "XXL",
"storage_number": 0
}
],
"status": 1
}
],
"info": {
"comment_total": 0,
"consult_total": 0
},
"isLimitBuy": false,
"is_advance": "N",
"is_collect": "N",
"is_outlets": "N",
"limitProductCode": "",
"limitProductSku":"", //限购商品sku
"market_price": 1988,
"phrase": "GENANX的品牌标志是由一道至上而下的闪电贯穿其中,闪电象征着品牌崇尚“力量、速度、激情、狂热”的精神内涵。从另一方面,正是这种无所畏惧的精神与力量,引导着GENANX整个品牌的发展,从始至终都贯彻在GENANX的时装设计与风格塑造之中。",
"product_id": 321819,
"product_name": "Genanx 压纹字母刺绣防风棉衣",
"product_skn": 51178553,
"product_url": "http://m.yohobuy.com/product/pro_321819_413961/GENANXJ3341MianYi.html",
"promotion": [
{
"promotion_title": "【Genanx】加¥99购休闲裤",
"promotion_type": "加价购"
},
{
"promotion_title": "【全场99元加价购】",
"promotion_type": "加价购"
},
{
"promotion_title": "【全场59元加价购】",
"promotion_type": "加价购"
},
{
"promotion_title": "【全场159元加价购】",
"promotion_type": "加价购"
}
],
"saleStatus": 0,
"sales_phrase": "",
"sales_price": 598,
"showStatus": 0,
"storage_sum": 0,
"tags": [
"is_discount",
"is_soon_sold_out"
],
"vip_price": "¥0.00"
},
"md5": "fdbd95851d6a171af283bb72f7396ba7",
"message": "product info"
}
```
\ No newline at end of file
... ...