文档
测试

更新评论

POST
api/comment/update

接口描述

更新评论信息,只有动态发布者可以编辑动态下属的评论

请求头

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

请求参数

参数名
类型
描述
必填
content
string
评论内容(如不修改,请传入旧内容)
必填
publishtime
string
发布时间(如不修改,请传入旧内容)
必填
platform
string
客户端(如不修改,请传入旧内容)
必填
comment_id
int
评论id
必填

正确返回

``` { "code": 200, "message": "OK", "data": [] } ```

错误返回

``` { "code": 1011, "message": "无权限编辑或删除", "data": [] } ``` ``` { "code": 1016, "message": "评论无法找到", "data": [] } ``` ``` { "code": 1005, "message": "表单填写错误", "data": "The comment id must be a number." } ```