简要描述:

  • 根据workerId获取服务的评论列表

请求URL:

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

参数:

参数名 是否必须 类型 说明
worker_id int 技师ID
page int 页码

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取评论数据成功!",
    "data": {
        "total": 9,
        "per_page": 10,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 9,
        "data": [
            {
                "id": 5,
                "worker_id": 10,
                "uid": "2612",
                "nick_name": "18520632247",
                "head_img_url": "http://127.0.0.1:88/attachment/images/8/2018/09/LwMnN1WSwStEswNZ0jw08SL1hkEhks.png",
                "content": "评论1 content",
                "store_level": 4,
                "project_level": 5,
                "worker_level": 4,
                "images": [],
                "created_at": "2019-12-26 16:06:57",
                "type": 1,
                "comment_id": 0,
                "reply_count": 2,
                "has_many_reply": [
                    {
                        "id": 6,
                        "uniacid": 8,
                        "order_service_id": 1,
                        "store_id": null,
                        "project_id": null,
                        "worker_id": null,
                        "uid": "2612",
                        "nick_name": "18520632247",
                        "head_img_url": "https://dev4.yunzshop.com/attachment/images/8/2018/09/LwMnN1WSwStEswNZ0jw08SL1hkEhks.png",
                        "content": "回复评论1 content",
                        "store_level": 0,
                        "project_level": 0,
                        "worker_level": 0,
                        "images": [],
                        "comment_id": 5,
                        "reply_id": 2612,
                        "reply_name": "18520632247",
                        "type": 2,
                        "created_at": "2019-12-26 16:09:03",
                        "deleted_at": null,
                        "updated_at": "2019-12-26 16:09:03"
                    },
                    {
                        "id": 7,
                        "uniacid": 8,
                        "order_service_id": 1,
                        "store_id": null,
                        "project_id": null,
                        "worker_id": null,
                        "uid": "2612",
                        "nick_name": "18520632247",
                        "head_img_url": "https://dev4.yunzshop.com/attachment/images/8/2018/09/LwMnN1WSwStEswNZ0jw08SL1hkEhks.png",
                        "content": "回复评论2 content",
                        "store_level": 0,
                        "project_level": 0,
                        "worker_level": 0,
                        "images": [],
                        "comment_id": 5,
                        "reply_id": 2612,
                        "reply_name": "18520632247",
                        "type": 2,
                        "created_at": "2019-12-26 16:09:45",
                        "deleted_at": null,
                        "updated_at": "2019-12-26 16:09:45"
                    }
                ]
            }
        ]
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
nick_name string 用户昵称
head_img_url string 用户头像
store_level int 门店评分
project_level int 项目评分
worker_level int 技师评分
images array 评论图片
comment_id int 主评论ID
reply_count int 回复数
has_many_reply obj 回复信息

备注:

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