简要描述:
版本号 |
制定人 |
制定日期 |
修订日期 |
1.0.0 |
kevin |
2020-10-12 |
|
请求URL:
请求方式:
请求头:
参数名 |
是否必须 |
类型 |
说明 |
token |
是 |
string |
token参数 |
请求参数:
参数名 |
是否必须 |
类型 |
说明 |
page |
是 |
int |
页码 |
pagesize |
是 |
int |
条数 |
goods_id |
是 |
int |
商品id |
返回示例:
正确时返回:
{
"status": 200,
"msg": "成功",
"data": {
"list": [
{
"com_id": 6,
"contents": "测试测试菜市场",
"img": [
"http://unionshop.com:82/uploads/goodsCommentImg/2020-10-12/5f83d48d8fc82.png",
"http://unionshop.com:82/uploads/goodsCommentImg/2020-10-12/5f83d48da0ddb.jpg",
"http://unionshop.com:82/uploads/goodsCommentImg/2020-10-12/5f83d48dae6f0.jpg"
],
"create_at": "2020-10-12 11:59:09",
"username": "kevin3",
"avatar": "http://unionshop.com:82/commentImg/3.png",
"is_topping": 1
}
],
"page": 1,
"pagesize": 1,
"total": 4
},
"other": []
}
错误时返回:
{
"status": 0,
"msg": "token过期",
"data": []
}
list返回参数说明:
参数名 |
类型 |
说明 |
com_id |
int |
评论id |
contents |
string |
评论内容 |
img |
array |
图片列表,可能为空 |
create_at |
string |
评论时间 |
username |
string |
用户名称 |
avatar |
string |
用户头像 |
备注:
文档更新时间: 2021-03-15 18:20 作者:admin