文档
测试

产品评价列表

GET
/api/goods/comment

请求参数

参数名
类型
描述
必填
goods_id
int
产品id
必填

响应参数

参数名
类型
描述
必填
status
int
必填
goods_id
int
产品id
必填
data
array
评论信息
必填
count
array
统计
必填
goods_count
int
好评
必填
general_count
int
中评
必填
bad_count
int
差评
必填
img_count
int
带图评价
必填
all_count
int
全部评价
必填
total_page
int
总页数
必填
page
int
下一页
必填

说明 / 示例

{ "status": null, "goods_id": "1", "data": [ { "id": 3, "content": "weetert", "user_id": 1, "created_at": "2022-07-20 16:36:35", "updated_at": "2022-07-20 16:36:35", "deleted_at": null, "level": 4, "goods_id": 1, "is_system": 0, "pid": 0, "add_time": "", "goods": { "id": 1, "name": "ceshi_视频", "thumbnail": "/images/1653010749770.jpg", "price": 2000, "rel_price": 1, "express_price": null, "store": 999, "ord": 0, "cate_id": 1, "sales_num": 10, "parameter": [ { "key": "尺寸", "value": "100*200" } ], "detail": "<img src=\"/editor/attached/image/20220520/20220520093251_13704.jpg\" alt=\"\" />", "home_page": 1, "status": 0, "comment_num": 0, "is_hot": 0, "created_at": "2022-05-20 09:39:09", "updated_at": "2022-07-20 16:15:26", "images": "<img src=\"/editor/attached/image/20220520/20220520093236_49892.jpg\" alt=\"\" />", "service":"[{\"key\":\"7\天\无\理\由\",\"value\":\"7\天\无\理\由\退\换\货\"}]", "deleted_at": null, "collect_num": 0, "customer_id": null, "deduction": "5.00", "final_payment": "1500.00", "process": "1,付定金-2,到店付尾款-3,发货", "video_src": "file\\202203\\959efc321858b6bf48b22d4b44630a12.mp4", "on_sale": null, "thumbnail_http": "http://127.0.0.77/images/1653010749770.jpg" }, "user": { "id": 1, "openid": "3435", "created_at": null, "updated_at": null, "recom_id": 0, "info": { "id": 1, "img": null, "username": null, "level_id": 0, "integral": "0.00", "user_id": 1, "card_num": null, "ewm_img": null, "consumption": 0, "birth": null, "identity": null, "address": null, "area": null, "email": null, "sex": 0, "username_code": "", "img_http": "" } }, "images": [], "review_comment": null } ], "count": { "goods_count": 0, "general_count": 1, "bad_count": 0, "img_count": 0, "review_count": 0, "all_count": 1 }, "total_page": 1, "page": 2 }