文档
测试

新闻内容的点赞收藏浏览量点击功能

POST
http://localhost:8081/user/news/updateById

接口描述

新闻内容的点赞,收藏,浏览量被点击功能

请求头

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

请求参数

multipart/form-data
参数名
类型
描述
必填
id
Long
id
必填
readingVolume
int
浏览量
可选
likeCount
int
喜欢
可选
collectionVolume
int
收藏
可选
status
int
状态
必填

响应参数

application/json
参数名
类型
描述
必填
code
int
结果码
必填
msg
String
操作结果
必填
result
Object
必填
id
Long
id
必填
categoryId
Long
分类id
必填
pictureUrl
String
图片
必填
videoId
Long
视频Id
必填
title
String
标题
必填
briefIntroduction
String
简介
必填
contentUrl
String
内容链接
必填
press
String
出版社
必填
publicationTime
String
发布时间
必填
author
String
作者
必填
sort
int
排序
必填
status
int
状态
必填
readingVolume
String
浏览量
必填
likeCount
String
点赞
必填
collectionVolume
String
收藏量
必填
content
String
详情内容
必填

说明 / 示例

id 是请求新闻里面的id,必须传 readingVolume likeCount collectionVolume status 这四个参数 可以不传,可以都传,或者三两组合都可以,点赞是传正值,取消点赞传负值