Skip to content

商城高频下单推荐

商城高频下单推荐

bshop

常用商品接口 /product/frequent/sku/search(新接口)

Method:GET

请求:
    无
响应:

  code    M   int     返回码,0表示成功,其他表示错误
  msg     M   string  错误信息
  data   M   list:   [
                        {
              "spu_id": "C1376487",
              "category_id_1": "A7666",
              "clean_food": false,
              "state": 1,
              "limit_number": null,
              "sale_unit_name": "斤",
              "cart_amount": 0,
              "stocks": -99999,
              "name": "鸡比菇",
              "is_valid": true,
              "salemenu_id": "S12731",
              "promotion_price": null,
              "std_sale_price": 1800,
              "station_id": "T7936",
              "sale_num_least": 1.0,
              "sale_ratio": 1.0,
              "is_price_timing": false,
              "category_id_2": "B37080",
              "img_url": "https://img.guanmai.cn/product_pic/cda64228520e5b6f.jpg",
              "sale_price": 1800,
              "std_unit_name": "斤",
              "id": "D7555673",
              "desc": "",
              "rule_price": null,
              "frequency": 9,
              "spu_img_url": "https://img.guanmai.cn/product_pic/cda64228520e5b6f.jpg",
            },
]

关键词搜索排序接口 /product/keyword/sku/search(新接口)

Method:GET

请求:
    search_text 搜索字段
响应:

  code    M   int     返回码,0表示成功,其他表示错误
  msg     M   string  错误信息
  data    M   list    搜索关键词列表
  [
  '白',
  '白菜',
  ...
  ]

获取商户配置信息添加每日精选接口 /product/homepage/customized(老接口)

Method:GET

请求:
    不变
响应:
    daily_selection_type int 1/2 默认/常用
    # 默认:查询每日推荐
  # 常用:查询常用商品

station

修改每日精选接口 /station/customized/update(老接口)

Method:POST

请求:
    新增:daily_selection_type O int 1/2 默认/常用

响应:
    不变