Authored by liyalin

品牌品类改版

  1 +## 1、每个三级品类每个用户一个skn##
  2 +
  3 +(method=app.sort.sknBigData)
  4 +请求方式:get
  5 +#### 请求参数
  6 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  7 +|:-------| -----:|-----:|-----:|-----:|----:|
  8 +|uid|String|是|10961107|null|用户ID|
  9 +|udid|String|是|7ce5433b0eb9b527599fd5ef319773bc2f5d94d8|null|设备号|
  10 +|channel_id|Integer| 是| 1|null|频道|
  11 +|msort|String|是|8|null|产品大分类(二级品类)Id|
  12 +|app_type|int|是|null|0|客户端类型 0:有货 1:BLK|
  13 +
  14 +
  15 +注意,通用的头部没有列出。
  16 +请求示例
  17 +http://devapi.yohops.com?app_version=4.9.2&client_type=h5&method=app.sort.sknBigData&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=&debug=XYZ&channel_id=1&msort=8&uid=9963947&v=7&client_secret=420eeac80e35c7d5b2e1916a458fa5c3
  18 +### 响应
  19 +code为200即为成功且只会返回200,每次都会有响应结果。
  20 +响应JSON格式如下所示:
  21 +```json
  22 +{
  23 + "alg": "SALT_MD5",
  24 + "code": 200,
  25 + "data": {
  26 + "bannerImage": "http://img12.static.yhbimg.com/goodsimg/2015/11/28/02/027aa96b62c1bade16b8d441ca614f8054.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  27 + "sortSknInfo":[
  28 + {
  29 + "product_skn": 51144625,
  30 + "category_name": "羽绒服",
  31 + "category_id": "215",
  32 + "default_images": "http://img13.static.yhbimg.com/goodsimg/2015/09/28/05/02763f68a785ef6b67e5f225752988240d.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  33 + },
  34 + {
  35 + "product_skn": 51148345,
  36 + "category_name": "棉服",
  37 + "category_id": "51",
  38 + "default_images": "http://img11.static.yhbimg.com/goodsimg/2015/11/10/06/01b607ceadd565ad20a8a9d9d4d739fa14.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  39 + }
  40 + ]
  41 + }
  42 + "md5": "08ec4fb8e05e4bc2617fd89bdf1793f8",
  43 + "message": "sort skn Info"
  44 +}
  45 +```
  46 +
  47 +
  48 +## 2、每个二级品类每个uid推荐6个品牌##
  49 +
  50 +(method=app.sort.brandBigData)
  51 +#### 请求参数
  52 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  53 +|:-------| -----:|-----:|-----:|-----:|----:|
  54 +|uid|String|是|10961107|null|用户ID|
  55 +|udid|String|是|7ce5433b0eb9b527599fd5ef319773bc2f5d94d8|null|设备号|
  56 +|channel_id|Integer| 是| 1|null|频道|
  57 +|msort|String|是|8|null|产品大分类(二级品类)Id|
  58 +|app_type|int|是|null|0|客户端类型 0:有货 1:BLK|
  59 +
  60 +注意,通用的头部没有列出,同原来收藏品牌接口。
  61 +请求示例
  62 +http://devapi.yohops.com?app_version=4.9.2&client_type=h5&method=app.sort.sknBigData&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=&debug=XYZ&channel_id=1&msort=8&uid=9963947&v=7&client_secret=420eeac80e35c7d5b2e1916a458fa5c3
  63 +### 响应
  64 +code为200即为成功,否则是失败。
  65 +响应JSON格式如下所示:
  66 +```json
  67 +{
  68 + "alg": "SALT_MD5",
  69 + "code": 200,
  70 + "data": [
  71 + {
  72 + "brand_id": 444,
  73 + "brand_name": "EVD",
  74 + "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/03/15/0266c8e46764959ef4fb7f34cb894017a6.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  75 + },
  76 + {
  77 + "brand_id": 560,
  78 + "brand_name": "GAWS",
  79 + "brand_ico": "http://img10.static.yhbimg.com/brandLogo/2014/06/30/10/01fd000f9e01e7b65155a91f89a2217982.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  80 + },
  81 + {
  82 + "brand_id": 144,
  83 + "brand_name": "VANS",
  84 + "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/09/14/027499d999bcd003cccf4272340b8603fc.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  85 + },
  86 + {
  87 + "brand_id": 208,
  88 + "brand_name": "Life·After Life",
  89 + "brand_ico": "http://img11.static.yhbimg.com/brandLogo/2014/02/07/13/0118e52b6f94d0f566bb6e17b1a08ac165.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  90 + },
  91 + {
  92 + "brand_id": 354,
  93 + "brand_name": "CHEAP MONDAY",
  94 + "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/10/09/0227bbdc3f9a25875134271a1c603613bb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  95 + }
  96 + ],
  97 + "md5": "8cd05100f51bdaed7fd4380e71e3af5b",
  98 + "message": "sort brand info"
  99 +}
  100 +```
  101 +
  102 +
  103 +## 3、每个频道每个用户给出13个品牌##
  104 +
  105 +(method=app.channel.brandBigData)
  106 +#### 请求参数
  107 +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
  108 +|:-------| -----:|-----:|-----:|-----:|----:|
  109 +|uid|String|是|10961107|null|用户ID|
  110 +|udid|String|是|7ce5433b0eb9b527599fd5ef319773bc2f5d94d8|null|设备号|
  111 +|channel_id|Integer| 是| 1|null|频道|
  112 +|app_type|int|是|null|0|客户端类型 0:有货 1:BLK|
  113 +
  114 +注意,通用的头部没有列出,同原来取消收藏品牌接口。
  115 +请求示例
  116 +http://devapi.yohops.com?app_version=4.9.2&client_type=h5&method=app.sort.sknBigData&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=&debug=XYZ&channel_id=1&uid=9963947&v=7&client_secret=420eeac80e35c7d5b2e1916a458fa5c3
  117 +### 响应
  118 +code为200即为成功,否则是失败。
  119 +响应JSON格式如下所示:
  120 +```json
  121 +{
  122 + "alg": "SALT_MD5",
  123 + "code": 200,
  124 + "data": [
  125 + {
  126 + "brand_id": 444,
  127 + "brand_name": "EVD",
  128 + "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/03/15/0266c8e46764959ef4fb7f34cb894017a6.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  129 + },
  130 + {
  131 + "brand_id": 560,
  132 + "brand_name": "GAWS",
  133 + "brand_ico": "http://img10.static.yhbimg.com/brandLogo/2014/06/30/10/01fd000f9e01e7b65155a91f89a2217982.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  134 + },
  135 + {
  136 + "brand_id": 144,
  137 + "brand_name": "VANS",
  138 + "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/09/14/027499d999bcd003cccf4272340b8603fc.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  139 + },
  140 + {
  141 + "brand_id": 208,
  142 + "brand_name": "Life·After Life",
  143 + "brand_ico": "http://img11.static.yhbimg.com/brandLogo/2014/02/07/13/0118e52b6f94d0f566bb6e17b1a08ac165.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  144 + },
  145 + {
  146 + "brand_id": 354,
  147 + "brand_name": "CHEAP MONDAY",
  148 + "brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/10/09/0227bbdc3f9a25875134271a1c603613bb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
  149 + }
  150 + ],
  151 + "md5": "8cd05100f51bdaed7fd4380e71e3af5b",
  152 + "message": "channel brand info"
  153 +}
  154 +```
  155 +
  156 +