简要描述:

  • 获取技师详情

请求URL:

GET/plugin.appointment.frontend.worker.get-detail-by-id

参数:

参数名 是否必须 类型 说明
lng float 经度
lat float 纬度
worker_id int 技师ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "worker": {
            "id": 10,
            "uniacid": 8,
            "member_u_id": 2591,
            "name": "姓名3",
            "store_id": 15,
            "project_ids": "3,4,5",
            "content": "",
            "thumb": "http://127.0.0.1:88/attachment/images/8/2019/12/tg0gx4ocO9cJH9IauxUo6GJ69oL99J.png",
            "score": "4.11",
            "comment_num": 9,
            "appointment_num": 5,
            "created_at": "2019-12-20 09:45:30",
            "deleted_at": null,
            "updated_at": "2019-12-31 17:02:29",
            "has_appointment_count": 5,
            "tags": [
                "分类名称1-2"
            ]
        },
        "projects": [
            {
                "id": 3,
                "title": "项目名称1",
                "category_id": 17,
                "thumb": "http://127.0.0.1:88/attachment/images/8/2019/12/ZptO9OGt6Oq97Iq9K7Hi78MRO9ZOOO.png",
                "has_one_category": {
                    "id": 17,
                    "name": "分类名称1-2"
                }
            },
            {
                "id": 4,
                "title": "项目名称2",
                "category_id": 17,
                "thumb": "http://127.0.0.1:88/attachment/images/8/2019/12/He6I6Y15422DKYN2Z6rFkPyPDQ6175.png",
                "has_one_category": {
                    "id": 17,
                    "name": "分类名称1-2"
                }
            },
            {
                "id": 5,
                "title": "项目名称3",
                "category_id": 0,
                "thumb": "http://127.0.0.1:88/attachment/images/8/2019/12/AN432t335Nc32Y88d5718tt3273z84.png",
                "has_one_category": null
            }
        ],
        "store": [
            {
                "id": 15,
                "store_name": "门店名称2",
                "longitude": "114.155593",
                "latitude": "22.551731",
                "distance": 115.9,
                "unit": "km",
                "score": "0.0000"
            },
            {
                "id": 16,
                "store_name": "门店名称3",
                "longitude": "114.255593",
                "latitude": "22.551731",
                "distance": 123.9,
                "unit": "km",
                "score": "0.0000"
            }
        ]
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
worker obj 技师信息
worker->id int 技师ID
worker->name string 技师姓名
worker->content string 技师描述
worker->thumb string 缩略图
worker->score float 技师评分
worker->comment_num int 技师被评论数
worker->appointment_num int 技师被预约总数
worker->has_appointment_count int 技师未来被预约数
worker->tags Array 技师标签
projects obj 技师相关项目信息
projects->id int 项目ID
projects->title string 项目标题
projects->thumb string 项目缩略图
store obj 技师所属门店信息
store->id int 门店ID
store->store_name string 门店名称
store->longitude float 经度
store->latitude float 纬度
store->distance float 距离
store->unit float 距离单位
store->score float 门店评分

备注:

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