简要描述:

  • 用户端附近接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-05-06

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
token string token参数

请求参数:

参数名 是否必须 类型 说明
shop_type int 固定值 2
page int 页码 ,默认为 1
pagesize int 条数 ,默认为 10
longitude string 经度
latitude string 纬度
keyword string 关键字,例如:店铺名称
orderBy string 排序搜索,【distance-asc=距离升序, distance-desc=降序,distribution_fee-asc=配送费升序, distribution_fee-desc=配送费降序,monthly_sale-asc=月售升序, monthly_sale-desc=月售降序,star-asc=星级升序, star-desc=星级降序,】

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "获取成功",
    "data": [
        {
            "shop_id": 2,
            "shop_type": "1",
            "shop_name": "便利店(布吉店)",
            "shop_logo": "http://chicken.com/uploads/shop_logo/2020-04-15/5e96a157593d6.png",
            "star": "5.0",
            "monthly_sale": 0,
            "exceed_money_send_goods": 0,
            "distribution_fee": 0,
            "distribution_fee_old": 0,
            "send_goods_time": 0,
            "distance": "9.2km"
        }
    ]
}

错误时返回:

{
    "status": 0,
    "msg": "token过期",
    "data": []
}

data返回参数说明:

参数名 类型 说明
shop_id int 图片路径
shop_name string 店铺名称
shop_logo string 店铺logo
star string 评价/星数
monthly_sale int 月售
exceed_money_send_goods int 多少起送
distribution_fee int 现配送费
distribution_fee_old int 原配送费
send_goods_time int 送货时间
distance string 距离

备注:

文档更新时间: 2020-05-06 17:15   作者:admin