...
|
...
|
@@ -113,3 +113,145 @@ code为200即为成功且只会返回200,每次都会有响应结果。 |
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2、最新上架##
|
|
|
|
|
|
(method=app.newproduct.newShelf)
|
|
|
请求方式:get
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|yh_channel|Integer|否|1|null|频道|
|
|
|
|limit|Integer|是|10|20|每页个数|
|
|
|
|page|Integer|是|1|数1|第几页|
|
|
|
|uid|Integer|是|10961123|null|用户ID|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.205:8080//gateway/?method=app.rec.shop&yh_channel=1&limit=10&page=1&uid=10961101&debug=XYZ
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"total": 10,
|
|
|
"page_total": 1,
|
|
|
"page": 1,
|
|
|
"season_hot_sort": [
|
|
|
{
|
|
|
"id": 285,
|
|
|
"name": "夹克"
|
|
|
},
|
|
|
{
|
|
|
"id": 285,
|
|
|
"name": "棉衣"
|
|
|
}
|
|
|
]
|
|
|
"product_list": [
|
|
|
{
|
|
|
"element_type":"product"
|
|
|
"small_sort_id": 125,
|
|
|
"vip1_price": 459,
|
|
|
"is_seckill": "N",
|
|
|
"gender": "1",
|
|
|
"product_price_plan_list": null,
|
|
|
"vip3_price": 459,
|
|
|
"is_global": "N",
|
|
|
"first_shelve_time": 1482980848,
|
|
|
"is_outlets": 2,
|
|
|
"is_discount": "Y",
|
|
|
"brand_domain": "5cm",
|
|
|
"is_special": null,
|
|
|
"vip_discount_type": 3,
|
|
|
"product_id": 505592,
|
|
|
"is_advance": "N",
|
|
|
"sales_num": 0,
|
|
|
"sales_phrase": "",
|
|
|
"is_student_rebate": "N",
|
|
|
"cn_alphabet": "5CMnandayi/fengyi",
|
|
|
"product_skn": 512584842,
|
|
|
"shelve_time": 0,
|
|
|
"is_deposit_advance": "N",
|
|
|
"vip2_price": 459,
|
|
|
"age_level": "1",
|
|
|
"is_student_price": "N",
|
|
|
"edit_time": 1482980848,
|
|
|
"is_new": "Y",
|
|
|
"student_price": null,
|
|
|
"is_limited": "N",
|
|
|
"brand_name": "5CM",
|
|
|
"max_sort_id": 1,
|
|
|
"product_name": "5CM男大衣/风衣",
|
|
|
"brand_id": 4,
|
|
|
"default_images": "/2016/12/29/11/0205c4c42ec661261af19bcc895db9f142.jpg",
|
|
|
"yohood_id": null,
|
|
|
"stock_number": 100,
|
|
|
"storage_num": 100,
|
|
|
"is_soon_sold_out": "N",
|
|
|
"middle_sort_id": 22,
|
|
|
"sales_price": 459,
|
|
|
"market_price": 500,
|
|
|
"is_promotion": 0,
|
|
|
"vip_price": 0,
|
|
|
"is_limitbuy": "N",
|
|
|
"country_id": 2,
|
|
|
"status": 1
|
|
|
},
|
|
|
{
|
|
|
"element_type":"hotSearchWord",
|
|
|
"word_list": "nike,耐克,adidas"
|
|
|
},
|
|
|
{
|
|
|
"element_type":"shop",
|
|
|
"shop_logo": "http://img11.static.yhbimg.com/yhb-img01/2013/01/16/09/01f515687de080f94243cb1aa0fedb2fe1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"shop_name": "得宝旗舰店",
|
|
|
"shop_domain": "shop$15",
|
|
|
"shops_id": 15,
|
|
|
"status": 1,
|
|
|
"shops_type": 1,
|
|
|
"decorator_template_type": 2,
|
|
|
"new_product_num": 15,
|
|
|
"favorite_num":2136
|
|
|
},
|
|
|
{
|
|
|
"element_type":"article",
|
|
|
"id":1523,
|
|
|
"articleTitle":"chunsefeng纯色风"
|
|
|
"coverImage": "http://img11.static.yhbimg.com/yhb-img01/2013/01/16/09/01f515687de080f94243cb1aa0fedb2fe1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"url": "http://baidu.com",
|
|
|
},
|
|
|
{
|
|
|
"element_type":"recommendBrand",
|
|
|
"shop_list":[
|
|
|
{
|
|
|
"shop_logo": "http://img11.static.yhbimg.com/yhb-img01/2013/01/16/09/01f515687de080f94243cb1aa0fedb2fe1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"shop_name": "得宝旗舰店",
|
|
|
"shop_domain": "shop$15",
|
|
|
"shops_id": 15,
|
|
|
"status": 1,
|
|
|
"shops_type": 1,
|
|
|
"decorator_template_type": 2,
|
|
|
"new_product_num": 15,
|
|
|
"favorite_num":2136
|
|
|
},
|
|
|
{
|
|
|
"shop_logo": "http://img11.static.yhbimg.com/yhb-img01/2013/01/16/09/01f515687de080f94243cb1aa0fedb2fe1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"shop_name": "得宝旗舰店",
|
|
|
"shop_domain": "shop$15",
|
|
|
"shops_id": 15,
|
|
|
"status": 1,
|
|
|
"shops_type": 1,
|
|
|
"decorator_template_type": 2,
|
|
|
"new_product_num": 15,
|
|
|
"favorite_num":2136
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"message": "Search List."
|
|
|
}
|
|
|
```
|
|
|
|
...
|
...
|
|