From ae7fc6c337451f28e18f152e5d2d40a808e63d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9A=A9=EC=88=98?= Date: Mon, 2 Sep 2024 17:23:37 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20PK=EA=B0=92=20Integer=20->=20Long?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../worlabel/domain/image/controller/ImageController.java | 6 +++--- .../worlabel/domain/image/repository/ImageRepository.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/main/java/com/worlabel/domain/image/controller/ImageController.java b/backend/src/main/java/com/worlabel/domain/image/controller/ImageController.java index c10d9e7..ca38429 100644 --- a/backend/src/main/java/com/worlabel/domain/image/controller/ImageController.java +++ b/backend/src/main/java/com/worlabel/domain/image/controller/ImageController.java @@ -57,7 +57,7 @@ public class ImageController { @CurrentUser final Integer memberId, @PathVariable("folder_id") final Integer folderId, @PathVariable("project_id") final Integer projectId, - @PathVariable("image_id") final Integer imageId + @PathVariable("image_id") final Long imageId ) { log.debug("project: {} , folder: {}, image: {}, 현재 로그인 중인 사용자 : {}", projectId, folderId, memberId, imageId); ImageResponse imageResponse = imageService.getImageById(projectId, folderId, imageId, memberId); @@ -72,7 +72,7 @@ public class ImageController { @CurrentUser final Integer memberId, @PathVariable("folder_id") final Integer folderId, @PathVariable("project_id") final Integer projectId, - @PathVariable("image_id") final Integer imageId, + @PathVariable("image_id") final Long imageId, @RequestBody final ImageMoveRequest imageMoveRequest ) { log.debug("project: {} , folder: {}, image: {}, 현재 로그인 중인 사용자 : {}, 이동하는 폴더 {}", projectId, folderId, memberId, imageId, imageMoveRequest.getMoveFolderId()); @@ -88,7 +88,7 @@ public class ImageController { @CurrentUser final Integer memberId, @PathVariable("folder_id") final Integer folderId, @PathVariable("project_id") final Integer projectId, - @PathVariable("image_id") final Integer imageId + @PathVariable("image_id") final Long imageId ) { log.debug("project: {} , folder: {}, 삭제하려는 이미지: {}, 현재 로그인 중인 사용자 : {}", projectId, folderId, imageId, memberId); imageService.deleteImage(projectId, folderId, imageId, memberId); diff --git a/backend/src/main/java/com/worlabel/domain/image/repository/ImageRepository.java b/backend/src/main/java/com/worlabel/domain/image/repository/ImageRepository.java index 73f32f8..b20e787 100644 --- a/backend/src/main/java/com/worlabel/domain/image/repository/ImageRepository.java +++ b/backend/src/main/java/com/worlabel/domain/image/repository/ImageRepository.java @@ -5,7 +5,7 @@ import org.springframework.data.jpa.repository.JpaRepository; import java.util.Optional; -public interface ImageRepository extends JpaRepository { +public interface ImageRepository extends JpaRepository { - Optional findByIdAndFolderId(Integer imageId, Integer folderId); + Optional findByIdAndFolderId(Long imageId, Integer folderId); }