新品到着.md 3.6 KB

1、推荐店铺

(method=app.newproduct.rec.shop) 请求方式: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.newproduct.rec.shop&yh_channel=1&limit=10&page=1&uid=10961101&debug=XYZ

响应

code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:

{
  "code": 200,
  "data": {
    "total": 10,
    "page_total": 1,
    "page": 1,
    "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
      }
    ]
  },
  "message": "Search List."
}

2、推荐品牌

(method=app.newproduct.rec.brand) 请求方式: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格式如下所示:

{
  "code": 200,
  "data": {
    "total": 10,
    "page_total": 1,
    "page": 1,
    "browse_brand_list": [
      {
        "brand_ico": "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",
        "brand_name": "得宝旗舰店",
        "brand_domain": "shop$15",
        "brand_id": 15,
        "status": 1,
        "type": 1,
        "decorator_template_type": 2,
        "shop_template_type": 2,
        "shop_id":1258
        "new_product_num": 15
      }
    ],
    "hot_brand_list": [
      {
        "brand_ico": "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",
        "brand_name": "得宝旗舰店",
        "brand_domain": "shop$15",
        "brand_id": 15,
        "status": 1,
        "type": 1,
        "decorator_template_type": 2,
        "shop_template_type": 2,
        "shop_id":1258
        "new_product_num": 15
      }
    ],
    "new_brand_list": [
      {
        "brand_ico": "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",
        "brand_name": "得宝旗舰店",
        "brand_domain": "shop$15",
        "brand_id": 15,
        "status": 1,
        "type": 1,
        "decorator_template_type": 2,
        "shop_template_type": 2,
        "shop_id":1258
        "new_product_num": 15
      }
    ]
  },
  "message": "Search List."
}