门店接口


如果有关键字,根据关键字查门店
如果收藏为1,只查收藏的门店
默认根据经纬度查方圆 5 公里的门店
Headers
参数
名称 类型 必选 描述
name string 关键字【门店名称】
is_takeaway int 是否支持外卖【1是 0否】
is_like int 是否收藏【1是 0否】
longitude string 经度
latitude string 纬度
正文
参数
响应输出

                                                            

                                                        
返回参数
查询一个门店
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
正文
参数
响应输出

                                                            

                                                        
返回参数
收藏与取消门店
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
正文
参数
响应输出

                                                            

                                                        
返回参数
门店地图标记
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数

Token接口


检测Token是否过期
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
刷新Token
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数

收货地址


我的收获地址
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
添加收获地址
Headers
参数
名称 类型 必选 描述
linkman string 收货人
phone string 联系电话
region string 所在地区
address string 详细地址
is_default string 是否默认【1是 0否】
正文
参数
响应输出

                                                            

                                                        
返回参数
修改收获地址
Headers
参数
名称 类型 必选 描述
id int 修改的id
linkman string 收货人
phone string 联系电话
region string 所在地区
address string 详细地址
is_default int 是否默认【1是 0否】
正文
参数
响应输出

                                                            

                                                        
返回参数
查询一条收货地址id
Headers
参数
名称 类型 必选 描述
address_id int 收货地址id
正文
参数
响应输出

                                                            

                                                        
返回参数
删除收货地址
Headers
参数
名称 类型 必选 描述
address_id int 收货地址id
正文
参数
响应输出

                                                            

                                                        
返回参数
设置默认收货地址
Headers
参数
名称 类型 必选 描述
address_id int 收货地址id
正文
参数
响应输出

                                                            

                                                        
返回参数

公共接口


微信支付
Headers
参数
名称 类型 必选 描述
body string 订单简介
out_trade_no string 订单编号
total_fee string 价格
openid string openid
正文
参数
响应输出

                                                            

                                                        
返回参数
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
上传文件
Headers
参数
名称 类型 必选 描述
file File 文件流
正文
参数
响应输出

                                                            

                                                        
返回参数
首页图标
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
文章
Headers
参数
名称 类型 必选 描述
id int 文章id
正文
参数
响应输出

                                                            

                                                        
返回参数
轮播图
Headers
参数
名称 类型 必选 描述
type int 类型【1首页 2门店】
shop_id int 门店id【类型首页的话不用填】
正文
参数
响应输出

                                                            

                                                        
返回参数

购物车


获取购物车内容
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
正文
参数
响应输出

                                                            

                                                        
返回参数
加入购物车
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
goods_id int 商品id
num int 数量
stuff string 多个规格值id,例如:1,2,3 英文逗号
正文
参数
响应输出

                                                            

                                                        
返回参数
清空购物车
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
正文
参数
响应输出

                                                            

                                                        
返回参数
购物车数量修改
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
id int 购物车id
change int 加减【1加 2减】
正文
参数
响应输出

                                                            

                                                        
返回参数

会员接口


Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
获取二维码
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
获取用户会员等级
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
使用用户id直接登录
Headers
参数
名称 类型 必选 描述
id string id
正文
参数
响应输出

                                                            

                                                        
返回参数
会员基本信息
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
小程序授权登录
Headers
参数
名称 类型 必选 描述
code string code
username string 昵称
avatar string 头像
iv string
encryptedData string
正文
参数
响应输出

                                                            

                                                        
返回参数
获取手机号
Headers
参数
名称 类型 必选 描述
code int code
iv int iv
encryptedData int encryptedData
正文
参数
响应输出

                                                            

                                                        
返回参数
每日赠送积分
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
是否有红包
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
登录领取红包
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数

订单


订单商品数据结构:
goods_id:商品id
num:数量
stuff:多个规格值id,例如:1,2,3 英文逗号
例如:[{goods_id:'1',num:'2',stuff:'1,2,3'},{goods_id:'2',num:'1',stuff:'1,4,7'}]
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
type int 类型【1外卖 2排队 3预订】
is_pack int 是否打包【1是 0否】
linkman string 收货人
phone string 联系电话
region string 所在地区
address string 详细地址
remark string 备注
my_coupon_id int 我的优惠卷id
reservetime string 预订时间【2020-06-02 12:00】
goods object 订单商品
正文
参数
响应输出

                                                            

                                                        
返回参数
订单商品数据结构:
goods_id:商品id
num:数量
stuff:多个规格值id,例如:1,2,3 英文逗号
例如:[{goods_id:'1',num:'2',stuff:'1,2,3'},{goods_id:'2',num:'1',stuff:'1,4,7'}]
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
type int 类型【1外卖 2排队 3预订】
is_pack int 是否打包【1是 0否】
linkman string 收货人
phone string 联系电话
region string 所在地区
address string 详细地址
remark string 备注
my_coupon_id int 我的优惠卷id
reservetime string 预订时间【2020-06-02 12:00】
goods object 订单商品
正文
参数
响应输出

                                                            

                                                        
返回参数
我的订单
Headers
参数
名称 类型 必选 描述
states string 状态【1待付款 2待配送 3已接单 4配送中 5已完成 6订单关闭】 不传为全部
id int id,第一次进入不填
num int 数量,不填默认为10
正文
参数
响应输出

                                                            

                                                        
返回参数
订单详情
Headers
参数
名称 类型 必选 描述
id int 订单id
正文
参数
响应输出

                                                            

                                                        
返回参数
选择优惠券
Headers
参数
名称 类型 必选 描述
id int 订单id
my_coupon_id int 我的优惠卷id
正文
参数
响应输出

                                                            

                                                        
返回参数
查看某个订单的排队人数
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
id int 订单id,可不传
type int 类型【1外卖 2自取】
正文
参数
响应输出

                                                            

                                                        
返回参数
获取外卖配置
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
正文
参数
响应输出

                                                            

                                                        
返回参数
获取满减情况
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
way int 方式 1自取 2外卖
正文
参数
响应输出

                                                            

                                                        
返回参数

优惠卷


优惠卷兑换列表
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
兑换优惠卷
Headers
参数
名称 类型 必选 描述
id int 优惠卷id
正文
参数
响应输出

                                                            

                                                        
返回参数
我的优惠卷
Headers
参数
名称 类型 必选 描述
type int 类型【1兑换记录 2未使用 3已使用 4已过期】
id int id,第一次进入不填
num int 数量,不填默认为10
正文
参数
响应输出

                                                            

                                                        
返回参数

商品


商品列表
Headers
参数
名称 类型 必选 描述
shop_id int 门店id
正文
参数
响应输出

                                                            

                                                        
返回参数
商品详情
Headers
参数
名称 类型 必选 描述
id int 商品id
正文
参数
响应输出

                                                            

                                                        
返回参数

会员接口 - 开发测试,上线会手动去更新到 user 中


获取用户会员等级
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
使用用户id直接登录
Headers
参数
名称 类型 必选 描述
id string id
正文
参数
响应输出

                                                            

                                                        
返回参数
会员基本信息
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
小程序授权登录
Headers
参数
名称 类型 必选 描述
code string code
username string 昵称
avatar string 头像
iv string
encryptedData string
正文
参数
响应输出

                                                            

                                                        
返回参数
获取手机号
Headers
参数
名称 类型 必选 描述
code int code
iv int iv
encryptedData int encryptedData
正文
参数
响应输出

                                                            

                                                        
返回参数
每日赠送积分
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
是否有红包
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
登录领取红包
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数