brand_shop_list.md
10.6 KB
1、app端品牌列表
(method=app.brand.allBrandList) 请求方式:get
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
yh_channel | Integer | 是 | 1 | 1 | 频道类型 |
app_type | Integer | 是 | 0 | 0 | yoho、blk |
gender | String | 是 | 1,3 | 性别 | |
client_type | String | 否 | android | 客户端类型 |
响应
code为200即为成功且只会返回200,每次都会有响应结果。
- type=2 --- 跳转有货店铺
- type=3 --- 跳转全球购店铺
- type=1 --- 跳转模糊搜索
响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"all_list": {
"A": [
{
"yoho_brand_id": 0,
"brand_alif": "A",
"is_global": "N",
"brand_name": "Aape",
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2015/12/03/15/02a0c256f3a75784fbcaa7d37715fcfa00.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"type": "1",
"brand_name_en": "Aape",
"brand_name_cn": "Aape",
"shelves_brand_time": 0,
"hot_keyword": "",
"is_show_new": "N",
"brand_domain": "aape",
"is_hot": "N",
"id": 862,
"status": 1
},
{
"yoho_brand_id": 0,
"brand_alif": "A",
"is_global": "N",
"brand_name": "AL203",
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2015/12/03/14/0277d716c07b1ff11ac2d4c9b3c6e5033d.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "内裤,内衣",
"type": "2",
"brand_name_en": "brand_name_en4444",
"shop_template_type": "1",
"brand_name_cn": "AL203",
"shelves_brand_time": 0,
"hot_keyword": "",
"is_show_new": "N",
"brand_domain": "al203",
"shop_id": 38,
"is_hot": "N",
"id": 753,
"status": 1
},
{
"global_brand_id": 3,
"yoho_brand_id": 0,
"brand_alif": "A",
"is_global": "N",
"brand_name": "Ambush",
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2012/06/29/10/01b6e52c8723100253354ee3d9e8960841.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"type": "3",
"brand_name_en": "Ambush",
"brand_name_cn": "Ambush",
"shelves_brand_time": 0,
"hot_keyword": "",
"is_show_new": "N",
"brand_domain": "ambush",
"is_hot": "N",
"id": 285,
"status": 0
}
]
},
"message": "success"
}
2、app模糊搜索店铺展示
(method=app.search.li) 请求方式:get
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
limit | Integer | 是 | 12 | 12 | 每页显示商品数量 |
page | Integer | 是 | 1 | 1 | 页数 |
响应
- shop_type=yoho_shop --- 跳转有货店铺,is_red_shop=1表示红人店铺,跳红人店铺;不是红人店铺的话,根据shop_template_type跳转基础模板和经典模板,shop_template_type=1表示基础模板,shop_template_type=2表示经典模板
- shop_type=tbl_brand --- 跳转全球购品牌
code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:
"shopList": [
{
"decorator_template_type": 1,
"shop_id": 930,
"blk_status": 0,
"shop_domain": "jordemo",
"shop_type": "yoho_shop",
"is_red_shop": 1,
"shop_name": "乔丹单品多供应商",
"shop_logo": "http://img10.static.yhbimg.com/yhb-img01/2017/02/15/17/0106fd7c058958a90b55d4d85586c186d6.jpeg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"shop_template_type": 1,
"check_status": 300,
"status": 1
},
{
"decorator_template_type": 1,
"shop_id": 936,
"blk_status": 0,
"shop_domain": "duopinpduoduo",
"shop_type": "yoho_shop",
"is_red_shop": 1,
"shop_name": "多品店普(多品牌每个品牌对多个供应商)",
"shop_logo": "http://img11.static.yhbimg.com/yhb-img01/2017/02/15/18/01c4a34536e55588daaecc42b2af1bb4a9.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"shop_template_type": 1,
"check_status": 300,
"status": 1
},
{
"yoho_brand_id": 2462,
"brand_alif": "M",
"is_global": "Y",
"brand_name": "MINAV",
"brand_ico": "http:///brandLogohttp%3A//img12.static.yhbimg.com/global/2016/05/16/14/02a688afd6253a4d045c9f4211f193f8c6.jpg%3FimageMogr2/thumbnail/%7Bwidth%7Dx%7Bheight%7D/extent/%7Bwidth%7Dx%7Bheight%7D/background/d2hpdGU%3D/position/center/quality/80?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"brand_name_en": "MINAV",
"brand_name_cn": "MINAV",
"shelves_brand_time": 0,
"hot_keyword": "",
"brand_domain": "",
"is_hot": "Y",
"shop_type": "tbl_brand",
"id": 62,
"status": 1
}
3、pc模糊搜索店铺展示
(method=web.search.shopListInfo) 请求方式:get
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
keyword | String | 否 | abcd | null | 搜索词 |
app_type | int | 是 | 0 | yoho blk |
响应
code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"shopList": [
{
"decorator_template_type": 0,
"shop_id": 38,
"blk_status": 0,
"shop_domain": "AL203",
"shop_type": "yoho_shop",
"shop_name": "AL203",
"shop_logo": "http://img11.static.yhbimg.com/yhb-img01/2016/04/28/10/012ef68cd323fe770508799ba1da0cdd0a.PNG?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"check_status": 300,
"status": 1
}
],
"sortInfo": {
"sort": [
{
"sub": [
{
"sub": [
{
"count": 99,
"order_by": "0",
"sort_name": "内裤",
"sort_id": "311"
}
],
"count": 99,
"order_by": "10",
"sort_name": "内裤",
"sort_id": "309"
},
{
"sub": [
{
"count": 27,
"order_by": "0",
"sort_name": "家居服",
"sort_id": "357"
}
],
"count": 27,
"order_by": "6",
"sort_name": "家居服",
"sort_id": "356"
}
],
"count": 126,
"order_by": "108",
"sort_name": "内衣/家居服",
"sort_id": "308"
},
{
"sub": [
{
"sub": [
{
"count": 2,
"order_by": "0",
"sort_name": "长袖T恤",
"sort_id": "293"
}
],
"count": 2,
"order_by": "50",
"sort_name": "T恤",
"sort_id": "11"
}
],
"count": 5,
"order_by": "100",
"sort_name": "上衣",
"sort_id": "1"
}
]
}
},
"md5": "bf953a61143f274eab166d06e8487275",
"message": "shop info."
}