10.25 ugc评论-加载评论列表.md
3.19 KB
/* Title: 10.3 加载评论列表 Sort: 103 */
请求方式: get
返回格式: JSON
请求参数说明:
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appId | true | string | 应用ID |
| topicId | true | string | 话题ID |
| seqId | true | string | 顺序ID(第一页传0) |
| count | true | string | 每页显示条数 |
| plat | true | string | 客户端平台[i:IOS客户端,a:Android客户端] |
| sid | true | string | 用户id |
| sign | true | string | 签名 |
返回格式说明:
{
"errorCode": "0",
"errorMessage": "成功",
"data": {
"total_hd": "5";
"total_columns": "4",
"hasNext": "true",
"comments": [
{
"comment": {
"commentId": "7",
"topicId": "1",
"uid": "xxx",
"nick": "asd",
"facepath": "http://xxx",
"content": "我不是楼主2",
"created_at": "2022-08-04 11:51",
"plat": "a",
"seqId": "1659585066201",
"praiseCount": "0",
"isPraised": "false"
},
"replyData": {
"replyCount": "0"
}
},
{
"comment": {
"commentId": "6",
"topicId": "1",
"uid": "xxx",
"nick": "asd",
"facepath": "http://xxx",
"content": "我不是楼主",
"created_at": "2022-08-04 11:40",
"plat": "a",
"seqId": "1659584455471",
"praiseCount": "0",
"isPraised": "false"
},
"replyData": {
"replyCount": "1",
"replys": [
{
"replyId": "4",
"commentId": "1",
"fromSid": "xxx",
"fromNick": "asd",
"fromFace": "http://xxx",
"toSid": "xxx",
"toNick": "asd",
"toFace": "http://xxx",
"content": "789额",
"created_at": "2022-08-04 11:39",
"plat": "a",
"praiseCount": "0",
"isPraised": "false",
"seqId": "1659584349971"
}]
}
}
]
}
}
{
errorCode:"xxx", //错误代码(非0)
errorMsg:"失败" //错误信息
}