店铺接口
GET
/index.php?action=shop/list
获取店铺列表
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
status | integer | 否 | 店铺状态(1:正常) |
GET
/index.php?action=shop/detail
获取店铺详情
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
shop_id | integer | 是 | 店铺ID |
include_merchant | boolean | 否 | 是否包含商家信息 |
GET
/index.php?action=shop/products
获取店铺商品列表
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
shop_id | integer | 是 | 店铺ID |
status | integer | 否 | 商品状态(1:正常) |
商品接口
GET
/index.php?action=product/detail
获取商品详情
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
product_id | integer | 是 | 商品ID |
用户接口
GET
/index.php?action=user/info
获取用户信息
请求头
参数名 | 必填 | 说明 |
---|---|---|
Token | 是 | 用户登录token |
POST
/index.php?action=user/login
用户登录
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
phone | string | 是 | 手机号 |
code | string | 是 | 验证码 |
POST
/index.php?action=user/sendSmsCode
发送短信验证码
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
phone | string | 是 | 手机号 |
订单接口
POST
/index.php?action=order/create
创建订单
请求头
参数名 | 必填 | 说明 |
---|---|---|
Token | 是 | 用户登录token |
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
shop_id | integer | 是 | 店铺ID |
address_id | integer | 是 | 收货地址ID |
products | array | 是 | 商品列表 |
total_amount | decimal | 是 | 订单总金额 |
remark | string | 否 | 订单备注 |