简要描述:
- 商品详情页的获取评价接口
请求URL:
GET/plugin.store-cashier.frontend.store.goods-comment.get-goods-comments-by-goods-id-and-store-id
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
store_id | 是 | int | 门店ID |
goods_id | 是 | int | 商品ID |
返回示例:
正确时返回:
{
result: 1,
msg: "获取评论数据成功!",
data: {
total: 1,
per_page: 20,
current_page: 1,
last_page: 1,
next_page_url: null,
prev_page_url: null,
from: 1,
to: 1,
data: [
{
id: 1,
order_id: 1,
goods_id: 174,
uid: 59,
nick_name: "asd",
head_img_url: "http://wx.qlogo.cn/mmopen/ICChoxbyTmz49jGagGFkbSzYLJBgtibRP92kxBntffDOYiap4VxIK3TRCyXnibHicOom0yGjVMOibj3wqPGrMmLUTvicOrwIL6w3fD/0",
content: "44545454454",
level: 5,
images: null,
created_at: "2017-09-12 10:40:25",
type: 1,
reply_count: 0,
append: null,
type_name: "评论",
has_many_reply: [ ]
}
]
}
}
错误时返回:
返回参数说明:
备注:
- 更多返回错误代码请看首页的错误代码描述