mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-24 11:58:04 +08:00
修复取消收藏接口
This commit is contained in:
@@ -108,7 +108,7 @@ public class ArticleController {
|
||||
@PostMapping("/cancelCollect")
|
||||
public Object cancelCollect(@RequestBody Map<String, String> params) {
|
||||
Assert.notNull(params.get("articleId"), "id参数缺失");
|
||||
Integer id = Integer.parseInt(params.get("articleId"));
|
||||
Integer articleId = Integer.parseInt(params.get("articleId"));
|
||||
Integer userId = LikeFrontThreadLocal.getUserId();
|
||||
iArticleService.cancelCollect(articleId, userId);
|
||||
return AjaxResult.success();
|
||||
|
||||
Reference in New Issue
Block a user