简要描述:
- 优惠卷
请求URL:
GET/plugin.store-cashier.frontend.store.aggregate-page.coupon
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | int | 否 | 分页数 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"total": 2,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 2,
"data": [
{
"id": 11,
"name": "测试门店6",
"coupon_method": 1,
"deduct": "10.00",
"discount": "0.00",
"enough": 100,
"store": {
"id": 6,
"store_name": "Joe的店",
"thumb": "http://dev4.yunzshop.com/attachment/images/6/2017/11/ZKN4AVZh5xcfXz1ZnOX94f33kkwkLX.png",
"full_address": "",
"dispatch": "支持",
"average_score": 0,
"order_total": 46,
"validity_status_name": "入驻中",
"pivot": {
"coupon_id": 11,
"store_id": 6
}
}
},
{
"id": 10,
"name": "测试门店6",
"coupon_method": 1,
"deduct": "10.00",
"discount": "0.00",
"enough": 100,
"store": {
"id": 8,
"store_name": "轻微的",
"thumb": "http://localhost/attachment/images/6/2018/08/f2e2rWKu2eQ08868D1A2we2kCycc3J.jpg",
"full_address": "",
"dispatch": "支持",
"average_score": 0,
"order_total": 0,
"validity_status_name": "入驻中",
"pivot": {
"coupon_id": 10,
"store_id": 8
}
}
}
]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
total | int | 数据总条数 |
per_page | int | 每页显示条数 |
current_page | int | 当前页数 |
last_page | int | 最后一页数 |
data参数说明:
参数名 | 类型 | 说明 |
---|---|---|
store.id | int | 门店id |
store.store_name | string | 门店名称 |
id | int(10) | 优惠券id |
name | string | 优惠券名 |
coupon_method | int | 1立减2折扣 |
deduct | float | 立减金额 |
discount | float | 折扣 |
enough | float | 限额 |
备注:
- 更多返回错误代码请看首页的错误代码描述