获取评论信息
GET
/shop/comment/{commentId}请求参数
Path 参数
commentId
string
必需
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer | null
可选
返回状态码:返回200表示请求接口成功,非200表示请求接口失败
msg
string | null
返回消息
data
object (Comment)
返回数据
createTime
string | null
创建时间
updateTime
string | null
更新时间
id
integer | null
可选
valueId
integer | null
可选
如果type=0,则是商品评论;如果是type=1,则是专题评论。
type
integer | null
可选
评论类型,如果type=0,则是商品评论;如果是type=1,则是专题评论;
content
string | null
评论内容
adminContent
string | null
管理员回复内容
userId
integer | null
用户表的用户ID
hasPicture
boolean | null
可选
是否含有图片(0无图,1有图)
picUrls
array[string] | null
可选
图片地址列表,采用JSON数组格式
star
integer | null
评分, 1-5
delFlag
boolean | null
可选
删除标志(0代表存在 1代表删除)
示例
{
"code": 0,
"msg": "",
"data": {
"createTime": "",
"updateTime": "",
"id": 0,
"valueId": 0,
"type": 0,
"content": "",
"adminContent": "",
"userId": 0,
"hasPicture": false,
"picUrls": [
""
],
"star": 0,
"delFlag": false
}
}
最后修改时间: 10 个月前