文档
测试

查询商品的所有评论

GET
/selectCommentAll

接口描述

查询商品的所有评论,降序

请求参数

参数名
类型
描述
必填
userToken
string
Token
必填
userId
string
用户Id
必填
shopId
stirng
商品Id
必填
page
stirng
当前页数
必填
pageSize
stirng
当前页数有多少条评论
必填

成功返回

参数名
类型
描述
必填
code
number
示例:200
可选
msg
object
示例:null
可选
data
object
数据字典
可选
list
array
数据列表
可选
commentId
string
示例:cd95a65515ed4ccfb57f80ef6885402d
可选
commentMsg
string
示例:测试评论
可选
commentTime
number
示例:1558681173
可选
userId
number
示例:1
可选
shopId
number
示例:2
可选
list
array
数据列表
可选
commentImgId
number
示例:3
可选
commentImgPath
string
示例:/picture/1558681173363.jpg
可选
commentId
string
示例:cd95a65515ed4ccfb57f80ef6885402d
可选
userBase
object
数据字典
可选
userId
number
示例:1
可选
userPhone
string
示例:18682026497
可选
userPassword
string
示例:123456
可选
userImg
string
示例:/picture/head.png
可选
username
string
示例:张三
可选
userAge
string
示例:20
可选
userSex
string
示例:男
可选
userDesc
string
示例:我是一个颗大白菜
可选
userToken
string
示例:ff2595b030a2bd13b4207fb5dd2a49c5
可选

失败返回

参数名
类型
描述
必填
code
number
示例:200
可选

说明 / 示例

商品评论表:commentbase commentId commentMsg 评论内容 commentTime 时间 userId 谁的评论 shopId 给那个商品的评论 商品评论的图片表:commentimgbase commentImgId commentImgPath 图片路径 commentId 那个评论的图片