简要描述:
- 获取门店所有预约
请求URL:
GET/plugin.appointment.frontend.appointment-service.get-list-by-store
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
status | 是 | int | 状态 0:可以约,1:已完成 ,9:已取消 |
page | 否 | int | 页码 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"total": 6,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 6,
"data": [
{
"id": 1,
"uniacid": 8,
"uid": 2612,
"order_id": 2,
"store_id": 15,
"worker_id": 10,
"status": 1,
"customer_name": "张三",
"customer_tel": "15000000000",
"begin_time": "2019-12-25 19:00",
"end_time": "2019-12-25 19:30",
"has_one_order_project": {
"id": 2,
"project_id": 4,
"project_title": "项目名称2",
"project_thumb": 0,
"project_price": "100.00"
},
"has_one_worker": {
"id": 10,
"name": "姓名3"
}
}
]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 预约服务ID |
order_id | int | 预约订单ID |
store_id | int | 门店ID |
worker_id | int | 技师ID |
customer_name | string | 顾客姓名 |
customer_tel | string | 顾客电话 |
begin_time | string | 开始时间 |
end_time | string | 结束时间 |
remark | string | 备注 |
has_one_order_project | obj | 项目信息 |
has_one_order_project->project_id | int | 项目ID |
has_one_order_project->project_title | string | 项目标题 |
has_one_order_project->project_thumb | string | 项目缩略图 |
has_one_order_project->project_price | float | 项目价格 |
has_one_worker | obj | 技师信息 |
has_one_worker->name | obj | 技师姓名 |
备注:
- 更多返回错误代码请看首页的错误代码描述