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); }