文档
测试

商品评价

POST
http://192.168.1.222/shop/api.goods/getEvaluation

请求参数

参数名
类型
描述
必填
apitoken
string
示例:C8DZU1a1fdbc71f5161bbdc010209c018587d3E1EKIBjj
必填
goods_id
int
商品标识 示例:109
必填
p
int
可选
row
int
可选

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
list
array
数据列表
必填
id
int
评论标识 示例:13
必填
goods_id
int
商品标识 示例:109
必填
user_name
string
用户昵称 示例:xx大大妞xx
必填
headimgurl
string
用户头像 示例:/./upload/image/20190618/5d08552307942.jpg
必填
content
string
评论内容 示例:sdasd
必填
create_time
int
评论时间 示例:1563930728
必填
favor
int
评分星级 示例:5
必填
shop_goods_comment_images
array
数据列表(图片集)
必填
image
string
评论大图 示例:/admin.php/upload/comment/20190717/5d2e8a3a585b0.jpg
必填
thumbnail
string
评论缩略图 示例:/admin_thumb.php/upload/comment/20190717/5d2e8a3a585b0_thumb.jpg
必填
sort_order
int
图片排序 示例:0
必填
count
int
总数 示例:1
必填
pagenum
int
页面总数 示例:1
必填
row
int
页码行数 示例:10
必填
p
int
页码 示例:1
必填
code
int
示例:1
必填
msg
string
示例:Success.
必填

说明 / 示例

``` { "data": { "list": [ { "id": 13, "goods_id": 109, "user_name": "xx大大妞xx", "headimgurl": "/./upload/image/20190618/5d08552307942.jpg", "content": "sdasd", "create_time": 1563930728, "favor": 5, "shop_goods_comment_images": [ { "image": "/admin.php/upload/comment/20190717/5d2e8a3a585b0.jpg", "thumbnail": "/admin_thumb.php/upload/comment/20190717/5d2e8a3a585b0_thumb.jpg", "sort_order": 0 }, { "image": "/admin.php/upload/comment/20190717/5d2e8a3a8c2bd.jpg", "thumbnail": "/admin_thumb.php/upload/comment/20190717/5d2e8a3a8c2bd_thumb.jpg", "sort_order": 1 }, { "image": "/admin.php/upload/comment/20190718/5d2fe5dca80cc.jpg", "thumbnail": "/admin_thumb.php/upload/comment/20190718/5d2fe5dca80cc_thumb.jpg", "sort_order": 2 }, { "image": "/admin.php/upload/comment/20190718/5d2fe6124bbe9.jpg", "thumbnail": "/admin_thumb.php/upload/comment/20190718/5d2fe6124bbe9_thumb.jpg", "sort_order": 3 }, { "image": "/admin.php/upload/comment/20190718/5d2fe64088152.jpg", "thumbnail": "/admin_thumb.php/upload/comment/20190718/5d2fe64088152_thumb.jpg", "sort_order": 4 } ] } ], "count": 1, "pagenum": 1, "row": 10, "p": 1 }, "code": 1, "msg": "Success." }