(取消)点赞/踩/浏览/分享新闻接口 | |
---|---|
url | localhost:8080/content/sfContent |
http请求方式 | put |
参数 | |
Authorization(head请求头) | 必填(token) |
参数格式 | url?cntId=?&pointType=? |
pointType | pointType=1 (顶(赞)) pointType=2 (取消 顶(赞)) pointType=3 (点击浏览次数) pointType=4 (踩) pointType=5 (取消 踩) pointType=6 (分享次数) |
返回值 | |
200 | { “code”: “200”, “message”: “请求成功!”, “data”: null } |
500 | 服务器内部错误 |
401 | { “code“: “401”, “message“: “没有找到token,没有权限访问!”, “data”: null } |
{
“code“: “401”,
“message“: “token不正确”,
“data”: null
} |