评论列表
开发中POST
/Comment/List请求参数
Body 参数multipart/form-data
TableName
string
数据表名称
示例值:
article_comments
PageNumber
integer
页码, 默认 1
示例值:
1
SubjectId
integer
主题ID
示例值:
108
PageSize
integer
可选
每页展示数,默认 6
示例值:
10
ShowId
integer
可选
展示ID,用于查询回复列表数据
示例值:
0
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
array [object {14}]
必需
Id
integer
必需
SubjectId
integer
必需
UId
integer
必需
ReplyId
integer
必需
ReplyShowId
integer
必需
ReplyUId
integer
必需
ReplyNickname
string
必需
IP
string
必需
Date
integer
必需
AgreeCount
integer
必需
Content
string
必需
Nickname
string
必需
Face
string
必需
Replies
array
必需
errcode
integer
必需
示例
{
"data": [
{
"Id": 610,
"SubjectId": 117,
"UId": 100560,
"ReplyId": 0,
"ReplyShowId": 0,
"ReplyUId": 0,
"ReplyNickname": "",
"IP": "::1",
"Date": 1684390358,
"AgreeCount": 0,
"Content": "Go mod提供了一系列操作modules的命令,所有的go命令中现在已经内置了对module的支持,而不仅仅是go mod命令。",
"Nickname": "小兰兰",
"Face": "static/memberFaces/default.png",
"Replies": []
},
{
"Id": 611,
"SubjectId": 117,
"UId": 100560,
"ReplyId": 0,
"ReplyShowId": 0,
"ReplyUId": 0,
"ReplyNickname": "",
"IP": "::1",
"Date": 1684390741,
"AgreeCount": 0,
"Content": "测试评论",
"Nickname": "小兰兰",
"Face": "static/memberFaces/default.png",
"Replies": []
},
{
"Id": 613,
"SubjectId": 117,
"UId": 100560,
"ReplyId": 0,
"ReplyShowId": 0,
"ReplyUId": 0,
"ReplyNickname": "",
"IP": "::1",
"Date": 1684390939,
"AgreeCount": 0,
"Content": "测试评论",
"Nickname": "小兰兰",
"Face": "static/memberFaces/default.png",
"Replies": []
}
],
"errcode": 0
}
最后修改时间: 2 年前