From 4494ec7dbc0e5a94b9b852901ef7298e42272aab Mon Sep 17 00:00:00 2001 From: shahaibo <1023316923@qq.com> Date: Thu, 12 Jun 2025 13:41:13 +0800 Subject: [PATCH] TASK:cloud; --- .../com/ai/da/controller/SavedCollectionController.java | 6 ++++++ src/main/java/com/ai/da/service/UserLikeGroupService.java | 2 ++ .../com/ai/da/service/impl/UserLikeGroupServiceImpl.java | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/src/main/java/com/ai/da/controller/SavedCollectionController.java b/src/main/java/com/ai/da/controller/SavedCollectionController.java index 4f4c40ab..d636208e 100644 --- a/src/main/java/com/ai/da/controller/SavedCollectionController.java +++ b/src/main/java/com/ai/da/controller/SavedCollectionController.java @@ -197,6 +197,12 @@ public class SavedCollectionController { return Response.success(userLikeGroupService.toProductImageElementUpload(file, projectId)); } + @ApiOperation(value = "toProductImageElementDelete") + @PostMapping("/toProductImageElementDelete") + public Response toProductImageElementDelete(@RequestParam(value = "id") Long id) { + return Response.success(userLikeGroupService.toProductImageElementDelete(id)); + } + @ApiOperation(value = "productImageLike") @PostMapping("/productImageLike") public Response productImageLike(@Valid @RequestBody ProductImageLikeDTO productImageLikeDTO) { diff --git a/src/main/java/com/ai/da/service/UserLikeGroupService.java b/src/main/java/com/ai/da/service/UserLikeGroupService.java index e79ed280..e5b0e19b 100644 --- a/src/main/java/com/ai/da/service/UserLikeGroupService.java +++ b/src/main/java/com/ai/da/service/UserLikeGroupService.java @@ -115,4 +115,6 @@ public interface UserLikeGroupService extends IService { void relightBatch(String taskId, String url, String progress); Boolean collectionLikeUpdate(CollectionLikeUpdateDTO collectionLikeUpdateDTO); + + Boolean toProductImageElementDelete(Long id); } diff --git a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java index 0ba43f24..ef3a10b9 100644 --- a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java @@ -2517,4 +2517,12 @@ public class UserLikeGroupServiceImpl extends ServiceImpl