文档
测试

获取商品评论

POST
http://localhost:8088/resexplore/comment/findList

请求参数

参数名
类型
描述
必填
productId
int
示例:6 查询某条商品评论,不传查全部
必填
likeUserId
int
当前用户id 查询当前用户是否对某条评论点赞,登陆后传入
必填

响应参数

参数名
类型
描述
必填
message
string
示例:成功
必填
code
int
示例:200
必填
info
object
示例:null
必填
data
object
数据字典
必填
total
int
示例:2
必填
rows
array
数据列表
必填
id
int
示例:2
必填
comment
string
示例:这个商品真不错
必填
userId
int
示例:4
必填
status
int
示例:0
必填
parentId
int
示例:0
必填
createTime
string
示例:2020-12-30T06:58:09.000+0000
必填
productId
int
示例:6
必填
commentSubs
array
数据列表
必填
id
int
示例:3
必填
comment
string
示例:是啊。价格实惠还好用
必填
userId
int
示例:4
必填
status
int
示例:0
必填
parentId
int
示例:2
必填
createTime
string
示例:2020-12-30T06:59:34.000+0000
必填
productId
int
示例:6
必填
commentSubs
array
数据列表
必填

说明 / 示例

{ "message": "成功", "code": 200, "info": null, "data": { "total": 2, "rows": [ { "id": 2, ==评论== "comment": "这个商品真不错", "userId": 4, "status": 0, "parentId": 0, "createTime": "2020-12-30T06:58:09.000+0000", "productId": 6, ==点赞数== "likeNum": 1, ==是否点赞 0否 1是== "isLike": 1, ==用户名== "nickName": "昵称", ==头像== "photo": "", ==投票数== "voteNum": 0 ==赞同票数== "approvalNum": 0, ==反对票数== "notApprovalNum": 0 ==子评论== "commentSubs": [ { "id": 3, "comment": "是啊。价格实惠还好用", "userId": 4, "status": 0, "parentId": 2, "createTime": "2020-12-30T06:59:34.000+0000", "productId": 6, "likeNum": 0, "commentSubs": [] } ] } ] } }