修复取消收藏接口
This commit is contained in:
parent
db5588577b
commit
cc481438df
|
|
@ -108,7 +108,7 @@ public class ArticleController {
|
||||||
@PostMapping("/cancelCollect")
|
@PostMapping("/cancelCollect")
|
||||||
public Object cancelCollect(@RequestBody Map<String, String> params) {
|
public Object cancelCollect(@RequestBody Map<String, String> params) {
|
||||||
Assert.notNull(params.get("articleId"), "id参数缺失");
|
Assert.notNull(params.get("articleId"), "id参数缺失");
|
||||||
Integer id = Integer.parseInt(params.get("articleId"));
|
Integer articleId = Integer.parseInt(params.get("articleId"));
|
||||||
Integer userId = LikeFrontThreadLocal.getUserId();
|
Integer userId = LikeFrontThreadLocal.getUserId();
|
||||||
iArticleService.cancelCollect(articleId, userId);
|
iArticleService.cancelCollect(articleId, userId);
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue