简要描述:

  • 我的预约列表

请求URL:

GET/plugin.appointment.frontend.appointment-service.get-list

参数:

参数名 是否必须 类型 说明
lng float 经度
lat float 纬度
status int 状态 0:可以约,1:已完成 ,9:已取消
page int 页码

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "total": 1,
        "per_page": 10,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 1,
        "data": [
            {
                "id": 1,
                "uniacid": 8,
                "uid": 2612,
                "order_id": 2,
                "store_id": 15,
                "worker_id": 10,
                "status": 1,
				"begin_time": "2019.12.25 19:00",
				"has_many_comment_count": 10,
				"show_cancel":0,
                "has_one_order_project": {
                    "id": 2,
                    "project_id": 4,
                    "project_title": "项目名称2",
                    "project_thumb": 0,
                    "project_price": "100.00"
                },
                "has_one_store": {
                    "id": 15,
                    "store_name": "门店名称2",
                    "longitude": "114.155593",
                    "latitude": "22.551731",
                    "address": "门店名称2地址"
                },
                "has_one_worker": {
                    "id": 10,
                    "name": "姓名3"
                }
            }
        ]
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
id int 预约服务ID
order_id int 预约订单ID
store_id int 门店ID
worker_id int 技师ID
begin_time string 预约开始时间
has_many_comment_count int 评论数
has_one_order_project obj 项目信息
remark string 备注
show_cancel int 是否显示取消按钮,0-不显示 1-显示
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_store obj 门店信息
has_one_store->id int 门店ID
has_one_store->store_name string 门店名称
has_one_store->longitude float 经度
has_one_store->latitude float 纬度
has_one_store->address string 地址
has_one_store->distance float 距离
has_one_store->unit float 距离单位
has_one_worker obj 技师信息
has_one_worker->name obj 技师姓名

备注:

  • 更多返回错误代码请看首页的错误代码描述