文档
测试

getReply

GET
http://127.0.0.1:8000/comment/getReply

接口描述

获取评论回复

请求头

参数名
类型
描述
必填
token
string
token
必填

请求参数

参数名
类型
描述
必填
cid
int
评论id
必填

响应参数

参数名
类型
描述
必填
status
int
自定义状态码,200为成功,其他码为失败
必填
200
success
必填
12001
后台异常
必填
message
string
状态信息
必填
data
list
必填
id
int
回复id
必填
cid
int
评论id
必填
usr_id
int
用户id
必填
reply_id
int
回复对象id 0为无对象
必填
reply_uid
int
回复对象用户id 0为无对象
必填
content
str
回复内容
必填
reply_sd
datetime
回复时间
必填
anonymity
int
是否匿名(1:是,0:否)
必填
likeNum
int
评论点赞数量
必填
username
str
用户名
必填
usr_pic
str
用户头像
必填
replyusername
str
回复对象用户名 (无对象为0)
必填
replyusr_pic
str
回复对象用户头像 (无对象为0)
必填
isLike
int
当前用户是否点赞(1:是,0:否)
必填
sign
int
额外标识位,默认为0
必填

说明 / 示例

{ "data": [ [ 1, 2, 2, 0, 0, "这是第一条二级评论", "2021-08-20T18:21:53", 0, 0, "lgg", "http://i2.hdslb.com/bfs/face/934f4a025374235cc8712ed0f0c369e67364d43a.jpg", 0, 0, 0, 0 ], [ 2, 2, 2, 0, 0, "lglj", "2021-08-21T18:07:15", 1, 1, "lgg", "http://i2.hdslb.com/bfs/face/934f4a025374235cc8712ed0f0c369e67364d43a.jpg", 0, 0, 1, 0 ], [ 4, 2, 2, 0, 0, "lglj", "2021-08-23T16:01:32", 1, 0, "lgg", "http://i2.hdslb.com/bfs/face/934f4a025374235cc8712ed0f0c369e67364d43a.jpg", 0, 0, 0, 0 ], [ 5, 2, 2, 0, 0, "修改结构后第一条回复", "2021-08-25T20:18:56", 0, 0, "lgg", "http://i2.hdslb.com/bfs/face/934f4a025374235cc8712ed0f0c369e67364d43a.jpg", 0, 0, 0, 0 ] ], "status": 200, "message": "查询成功" }