查询商品所有评论列表
GET
/app/mall/api/v1/goods/comment/list
请求参数
Query 参数
goodsId
integer
商品ID
示例值:
1
pageNum
integer
页数
示例值:
1
pageSize
integer
条数
示例值:
10
stars
string
可选
示例值:
1
hasPicture
string
可选
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://47.93.16.76:8080/app/mall/api/v1/goods/comment/list?goodsId=1&pageNum=1&pageSize=10&stars=1&hasPicture=1'
返回响应
🟢200成功
application/json
Body
msg
string
必需
code
integer
必需
data
object
必需
commentList
array [object {11}]
评论信息
gNums
integer
好评数量
picNums
integer
图片数量
cNums
integer
差评数量
zNums
integer
中评数量
示例
{
"msg": "操作成功",
"code": 200,
"data": {
"commentList": [
{
"createBy": null,
"createTime": "2023-11-29 14:54:20",
"updateBy": null,
"updateTime": null,
"remark": null,
"id": 1021,
"orderGoodsId": 4,
"specifications": "[\"1.8m床垫*1+枕头*2\",\"浅杏粉\"]",
"goodsId": 1,
"mallGoods": null,
"userId": 1,
"userName": "我是一只鱼",
"userAvatar": null,
"userIsVip": false,
"contents": "我是第二条商品的评价!!!",
"adminContents": "我回复了你的评价",
"hasPicture": "0",
"imgsUrl": "[]",
"stars": "1",
"delFlag": "0"
},
{
"createBy": null,
"createTime": "2023-11-29 13:57:36",
"updateBy": null,
"updateTime": null,
"remark": null,
"id": 1020,
"orderGoodsId": 3,
"specifications": "[\"1.8m床垫*1+枕头*2\",\"浅杏粉\"]",
"goodsId": 1,
"mallGoods": null,
"userId": 1,
"userName": "我是一只鱼",
"userAvatar": null,
"userIsVip": false,
"contents": "我是第二条商品的评价!!!",
"adminContents": null,
"hasPicture": "0",
"imgsUrl": "[]",
"stars": "1",
"delFlag": "0"
}
],
"gNums": 0,
"picNums": 0,
"cNums": 0,
"zNums": 2
}
}
修改于 2023-11-29 06:09:21