From a22b20aab75d9c800dc8d6b7659b245a0ae992cb Mon Sep 17 00:00:00 2001 From: s2042968 Date: Fri, 11 Apr 2025 17:43:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BA=93=E6=96=87=E4=BB=B6=E5=A2=9E?= =?UTF-8?q?=E6=B7=BB=E5=8F=96=E6=B6=88=E6=94=B6=E8=97=8F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/controller/RepoEdFileInfoController.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/electrmangnetic/src/main/java/com/electromagnetic/industry/software/manage/controller/RepoEdFileInfoController.java b/electrmangnetic/src/main/java/com/electromagnetic/industry/software/manage/controller/RepoEdFileInfoController.java index ae9c825..c456047 100644 --- a/electrmangnetic/src/main/java/com/electromagnetic/industry/software/manage/controller/RepoEdFileInfoController.java +++ b/electrmangnetic/src/main/java/com/electromagnetic/industry/software/manage/controller/RepoEdFileInfoController.java @@ -176,4 +176,17 @@ public class RepoEdFileInfoController { String userId = UserThreadLocal.getUserId(); return ElectromagneticResultUtil.success(edFileInfoService.addFavorite(userId, id)); } + + /** + * 从收藏夹移除 + * + * @param id 文件id + * @return + */ + @GetMapping("/removeCollection") + @UserOperation(value = "从收藏夹移除文件", modelName = UserOperationModuleEnum.USER_PRJ) + public ElectromagneticResult removeFavorite(@RequestParam String id) { + String userId = UserThreadLocal.getUserId(); + return ElectromagneticResultUtil.success(edFileInfoService.removeFavorite(userId, id)); + } }