简要描述:
- 获取技师所有预约
请求URL:
GET/plugin.appointment.frontend.appointment-service.get-list-by-worker
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
status | 是 | int | 状态 0:可以约,1:已完成 ,9:已取消 |
page | 否 | int | 页码 |
lng | 是 | string | 经度 |
lat | 是 | string | 维度 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"total": 5,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 5,
"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",
"rest_count": 7,
"total_count": 8,
"used_count": 1
},
"service_address" : {
"province":"广东省",
"city":"广州市",
"district":"白云区",
"street":"新市街道",
"address":"机场路1600",
"unit":"km",
"distance":"5",
"latitude":"31.317145598759",
"longitude":"121.48441315859",
}
}
]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
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_order_project->rest_count | int | 项目剩余次数 |
has_one_order_project->total_count | int | 项目总次数 |
has_one_order_project->used_count | int | 项目已使用次数 |
service_type | int | 服务类型,0预约门店, 1上门服务 |
service_address.province | string | 省 |
service_address.city | string | 市 |
service_address.district | string | 区 |
service_address.street | string | 乡镇 |
service_address.address | string | 详细地址 |
service_address.distance | fload | 距离 |
service_address.unit | string | 距离单位 |
service_address.longitude | string | 预约地址经度 |
service_address.latitude | string | 预约地址维度 |
备注:
- 更多返回错误代码请看首页的错误代码描述