地址:
/Article/GetCommentInfo
方法:
GET
是否需要登录:
否
参数说明:
参数名称 | 是否必选 | 参数类型 | 参数描述 |
---|---|---|---|
articleId | 是 | int | 文章id |
offset | 是 | int | 分页开始头评论id |
size | 是 | int | 加载评论数 |
请求示例:
curl -d 'articleId=1&offset=0&size=10' '/Article/GetCommentInfo'
返回值说明:
参数名称 | 是否必选 | 参数类型 | 参数描述 |
---|---|---|---|
reCommentCount | 是 | Integer | 该条评论的回复总数 |
webUser | 是 | WebUser | 评论用户信息类 |
webUser.id | 是 | Integer | 评论用户id |
webUser.username | 是 | string | 评论用户名称 |
webUser.nickname | 是 | string | 评论用户昵称 |
articleComment | 是 | ArticleComment | 评论信息类 |
articleComment.id | 是 | Integer | 评论id |
articleComment.createTime | 是 | string | 评论创建时间 |
articleComment.updateTime | 是 | string | 评论上次更新时间 |
articleComment.comment | 是 | string | 评论内容 |
articleCommentDTOList | 是 | List{ArticleCommentDTO} | 评论下的回复类(详细见评论的回复接口) |
返回示例:
{"code":200,"message":"请求成功","data":[{"reCommentCount":8,"webUser":{"username":"liuchong","nickname":"草帽","id":1},"articleComment":{"webUserId":1,"articleId":1,"comment":"你好嗯嗯这是评论1","replyCommentId":0,"parentsCommentId":"0,","id":1,"createTime":"2016-05-15 23:07:13","updateTime":"2016-06-11 15:57:43"},"articleCommentDTOList":[{"webUser":{"username":"zuoxiaolong","nickname":"小弟","id":3},"parentUser":{"username":"liuchong","nickname":"草帽","id":1},"articleComment":{"webUserId":3,"articleId":1,"comment":"你好嗯嗯这是评论1回复1","replyCommentId":1,"parentsCommentId":"0,1,","id":4,"createTime":"2016-05-15 23:07:13","updateTime":"2016-06-13 17:33:42"}},{"webUser":{"username":"liuchong@qq.com","nickname":"大神","id":4},"parentUser":{"username":"liuchong","nickname":"草帽","id":1},"articleComment":{"webUserId":4,"articleId":1,"comment":"你好嗯嗯这是评论1回复2","replyCommentId":1,"parentsCommentId":"0,1,","id":5,"createTime":"2016-05-15 23:07:13","updateTime":"2016-06-13 17:33:45"}},{"webUser":{"username":"zuoxiaolong","nickname":"小弟","id":3},"parentUser":{"username":"liuchong","nickname":"草帽","id":1},"articleComment":{"webUserId":3,"articleId":1,"comment":"你好嗯嗯这是评论1回复3","replyCommentId":1,"parentsCommentId":"0,1,","id":6,"createTime":"2016-05-15 23:07:12","updateTime":"2016-06-13 17:33:48"}}]},{"reCommentCount":1,"webUser":{"username":"zuoxiaolong","nickname":"小弟","id":3},"articleComment":{"webUserId":3,"articleId":1,"comment":"你好嗯嗯这是评论2","replyCommentId":0,"parentsCommentId":"0,","id":2,"createTime":"2016-05-15 23:07:14","updateTime":"2016-06-13 17:33:36"},"articleCommentDTOList":[{"webUser":{"username":"liuchong@qq.com","nickname":"大神","id":4},"parentUser":{"username":"zuoxiaolong","nickname":"小弟","id":3},"articleComment":{"webUserId":4,"articleId":1,"comment":"我是你的回复","replyCommentId":2,"parentsCommentId":"0,2,","id":19,"createTime":"2016-06-19 00:00:22","updateTime":"2016-06-19 00:00:22"}}]}]}