简要描述:
- 我的预约列表-分时预约
请求URL:
GET/plugin.reserve-simple.frontend.reserve-order.get-my-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
reserve_type | 否 | int | 默认全部,1-待核销,2-已完成 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"current_page": 1,
"data": [
{
"id": 8,
"order_id": 1927,
"order_sn": "SN22020911082D8EAD",
"goods_id": 361,
"goods_title": "分时预约商品2",
"goods_thumb": "http://localhost:82/attachment/image/6adc3f84138f014bd480f58fd8a5205f.png",
"obj_name": "预约对象2",
"begin_time": 1643817600,
"status": 0,
"refund_id":0,
"begin_time_str": "2022-02-03 00:00"
},
{
"id": 9,
"order_id": 1928,
"order_sn": "SN220209111408DE7D",
"goods_id": 361,
"goods_title": "分时预约商品2",
"goods_thumb": "http://localhost:82/attachment/image/6adc3f84138f014bd480f58fd8a5205f.png",
"obj_name": "预约对象2",
"begin_time": 1643817600,
"status": 0,
"refund_id":0,
"begin_time_str": "2022-02-03 00:00"
}
],
"first_page_url": "http://localhost:82/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:82/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://localhost:82/addons/yun_shop/api.php",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | id |
order_id | int | 订单id |
order_sn | string | 订单编号 |
goods_id | int | 商品id |
goods_thumb | string | 商品缩略图 |
obj_name | string | 预约对象名称 |
status | int | 状态:0:未完成,1:已完成,2:申请取消,3:取消成功,9:取消失败(0,2,9是待核销。1,3是已完成) |
refund_id | int | 退款id,不是退款状态是0 |
begin_time_str | string | 开始时间 |
备注:
- 更多返回错误代码请看首页的错误代码描述