Comment:deleteVote

注意:该接口需要登陆后才能调用。

取消为评论的投票。

HTTP 请求

DELETE /api/comments/{comment_id}/voters

参数

参数名参数位置类型默认值说明
comment_idpathinteger

评论ID

响应

投票数量

示例

{
  "code": 0,
  "data": {
    "vote_count": 44,
    "vote_up_count": 96,
    "vote_down_count": 52
  }
}

参数说明

参数名 类型 说明
code integer

无任何错误时,状态码为 0

data.vote_count integer

投票目标获得的总投票量(赞成票 - 反对票),结果可以为负数

data.vote_up_count integer

赞成票总数

data.vote_down_count integer

反对票总数