文档
测试

商品评价列表

POST
/api/portal/goods_comment/index

响应参数

参数名
类型
描述
必填
goods_id
int
商品id
必填
comment_star
int
1 好评 2 中评 3 差评
可选

说明 / 示例

{ "code": 1, "msg": "请求成功!", "data": { "id": 6, "name": "“足迹行”智能学习卡", "type_id": "index", "image": "", "invent": 300, "o_price": "498", "price": "298.00", "xl": 0, "hp": 100, "status": 1, "des": "<p>1123</p>", "list_order": 100, "is_hot": 2, "is_recomm": 2, "is_zy": 1, "type_info": null, "img_info": [ 商品轮播图 { "goods_id": 6, "image": "https://xcx.hflide.com/tmp/uploads/20200309/4e038bb2b070ac9e1b17265e5714fc58.jpg" }, { "goods_id": 6, "image": "https://xcx.hflide.com/tmp/uploads/20200309/da39adbec830de2f264d5c882f79140d.jpg" }, { "goods_id": 6, "image": "https://xcx.hflide.com/tmp/uploads/20200309/b26ca6b7d39b03a4ff46cecd980ea395.jpg" } ], "sku_info": [ { 商品已有的sku组合 "id": 4, "goods_id": 6, "sku_id": "20-22-26", "name": "X-红色-128G", "invent": 2, "image": "", "price": "2.00" } ], "sku_list": [ { 商品的规格和规格值,注意,这里用户在点击规格值的时候要匹配到sku_info的sku_id后才能说明该组合有商品,可以购买 "id": 19, "goods_id": 6, "parent_id": 0, "name": "尺寸1", "list_order": 1000, "status": 1, "child": [ { "id": 20, "goods_id": 6, "parent_id": 19, "name": "X", "list_order": 10000, "status": 1, "child": [] }, { "id": 24, "goods_id": 6, "parent_id": 19, "name": "XXL", "list_order": 10000, "status": 1, "child": [] } ] }, { "id": 21, "goods_id": 6, "parent_id": 0, "name": "颜色", "list_order": 10000, "status": 1, "child": [ { "id": 22, "goods_id": 6, "parent_id": 21, "name": "红色", "list_order": 10000, "status": 1, "child": [] }, { "id": 23, "goods_id": 6, "parent_id": 21, "name": "黄色", "list_order": 10000, "status": 1, "child": [] } ] }, { "id": 25, "goods_id": 6, "parent_id": 0, "name": "内存", "list_order": 10000, "status": 1, "child": [ { "id": 26, "goods_id": 6, "parent_id": 25, "name": "128G", "list_order": 10000, "status": 1, "child": [] }, { "id": 27, "goods_id": 6, "parent_id": 25, "name": "256", "list_order": 10000, "status": 1, "child": [] } ] } ] } }