Appearance
http://域名/api/v1/comment/{vid}/{page_size}/{page}/
{ "code": 200, "data": { "comments": [ { "id": 1, "content": "测试", "author": { "uid": 1, "name": "", "sign": "", "avatar": "", "spacecover": "", "gender": 1 }, "reply": [ { "id": 3, "content": "1", "author": { "uid": 1, "nikename": "", "sign": "", "avatar": "", "spacecover": "", "gender": 1 }, "at": [], "created_at": "2022-06-22T21:08:25Z" } ], "at": [], "created_at": "2022-06-20T13:42:40.625Z" } ] }, "mssage": "success" }
无
http://域名/api/v1/comment/reply/{评论ID}/{page_size}/{page}
{ "code": 200, "data": { "replies": [ { "id": 4, "content": "1", "author": { "uid": 1, "nikename": "", "sign": "", "avatar": "", "spacecover": "", "gender": 1 }, "at": [], "created_at": "2022-06-22T21:08:25Z" } ] }, "mssage": "success" }
http://域名/api/v1/comment
"content-type": "application/json",
Authorization': access_token
{ "code": 200, "data": { "id": "1", }, "mssage":"success" }
http://域名/api/v1/comment/reply
http://域名/api/v1/comment/{视频id}/{评论id}
{ "code": 200, "data": null, "mssage":"success" }
http://域名/api/v1/comment/reply/{视频id}/{评论id}/{回复id}
评论回复相关接口 #
获取评论 #
请求URL #
http://域名/api/v1/comment/{vid}/{page_size}/{page}/
请求方式 #
请求参数 #
返回示例 #
返回参数说明 #
回复reply #
作者信息author #
备注 #
无
获取回复详情 #
请求URL #
http://域名/api/v1/comment/reply/{评论ID}/{page_size}/{page}
请求方式 #
请求参数 #
返回示例 #
返回参数说明 #
作者信息author #
备注 #
无
发布评论 #
请求URL #
http://域名/api/v1/comment
请求方式 #
请求头 #
"content-type": "application/json",
Authorization': access_token
参数 #
返回示例 #
返回参数说明 #
备注 #
无
发布回复 #
请求URL #
http://域名/api/v1/comment/reply
请求方式 #
请求头 #
"content-type": "application/json",
Authorization': access_token
参数 #
返回示例 #
返回参数说明 #
备注 #
无
删除评论 #
请求URL #
http://域名/api/v1/comment/{视频id}/{评论id}
请求方式 #
请求头 #
"content-type": "application/json",
Authorization': access_token
参数 #
返回示例 #
备注 #
无
删除回复 #
请求URL #
http://域名/api/v1/comment/reply/{视频id}/{评论id}/{回复id}
请求方式 #
请求头 #
"content-type": "application/json",
Authorization': access_token
参数 #
返回示例 #
备注 #
无