简要描述:
- 根据projectId获取服务的评论列表
请求URL:
GET/plugin.appointment.frontend.comment.get-comment-by-project-id
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
project_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": 4,
"project_id": 4,
"uid": "2612",
"nick_name": "18520632247",
"head_img_url": "http://127.0.0.1:88/attachment/images/8/2018/09/LwMnN1WSwStEswNZ0jw08SL1hkEhks.png",
"content": "评论 content",
"store_level": 4,
"project_level": 5,
"worker_level": 4,
"images": [],
"created_at": "2019-12-26 15:42:22",
"type": 1,
"comment_id": 0,
"reply_count": 1,
"has_many_reply": [
{
"id": 8,
"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": "回复评论11 content",
"store_level": 0,
"project_level": 0,
"worker_level": 0,
"images": [],
"comment_id": 4,
"reply_id": 2612,
"reply_name": "18520632247",
"type": 2,
"created_at": "2019-12-26 16:09:54",
"deleted_at": null,
"updated_at": "2019-12-26 16:09:54"
}
]
}
]
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
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 | 回复信息 |
备注:
- 更多返回错误代码请看首页的错误代码描述