简要描述:
- 获取技师未来全部时间段列表
请求URL:
GET/plugin.appointment.frontend.work-time.get-period-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
store_id | 否 | int | 门店ID |
worker_id | 是 | int | 技师ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": [
{
"work_date_format": "2020-01-02",
"work_sattus": 0,
"times": [
{
"id": 75,
"work_hour_start": "18:00",
"work_hour_end": "21:00",
"status": 0
},
{
"id": 89,
"work_hour_start": "13:00",
"work_hour_end": "18:00",
"status": 0
},
{
"id": 103,
"work_hour_start": "10:00",
"work_hour_end": "12:00",
"status": 0
}
]
},
{
"work_date_format": "2020-01-03",
"work_sattus": 0,
"times": [
{
"id": 76,
"work_hour_start": "18:00",
"work_hour_end": "21:00",
"status": 0
},
{
"id": 90,
"work_hour_start": "13:00",
"work_hour_end": "18:00",
"status": 0
},
{
"id": 104,
"work_hour_start": "10:00",
"work_hour_end": "12:00",
"status": 0
}
]
}
]
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
work_date_format | string | 日期 |
work_status | int | 工作状态。0:正常;1:休息 |
times->work_hour_start | string | 开始时间 |
times->work_hour_end | string | 结束时间 |
times->status | int | 工作状态。0:正常;1:休息 |
备注:
- 更多返回错误代码请看首页的错误代码描述