From 2190f9d82406e65f0ce71737b251af266168432a Mon Sep 17 00:00:00 2001 From: 101 Date: Tue, 19 Mar 2024 23:15:04 +0900 Subject: [PATCH] refactor --- .../user/usecase/service/UploadUserProfileImageService.java | 2 +- .../infra/s3/service/{ => impl}/S3DeleteObjectImpl.java | 3 ++- .../infra/s3/service/{ => impl}/S3UploadObjectImpl.java | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) rename daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/{ => impl}/S3DeleteObjectImpl.java (93%) rename daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/{ => impl}/S3UploadObjectImpl.java (98%) diff --git a/daemawiki-api/src/main/java/org/daemawiki/domain/user/usecase/service/UploadUserProfileImageService.java b/daemawiki-api/src/main/java/org/daemawiki/domain/user/usecase/service/UploadUserProfileImageService.java index 6f8672f3..b7cd1b73 100644 --- a/daemawiki-api/src/main/java/org/daemawiki/domain/user/usecase/service/UploadUserProfileImageService.java +++ b/daemawiki-api/src/main/java/org/daemawiki/domain/user/usecase/service/UploadUserProfileImageService.java @@ -7,7 +7,7 @@ import org.daemawiki.exception.h500.ExecuteFailedException; import org.daemawiki.exception.h500.FileUploadFailedException; import org.daemawiki.infra.s3.service.S3UploadObject; -import org.daemawiki.infra.s3.service.S3UploadObjectImpl; +import org.daemawiki.infra.s3.service.impl.S3UploadObjectImpl; import org.springframework.http.codec.multipart.FilePart; import org.springframework.stereotype.Service; import reactor.core.publisher.Mono; diff --git a/daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/S3DeleteObjectImpl.java b/daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/impl/S3DeleteObjectImpl.java similarity index 93% rename from daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/S3DeleteObjectImpl.java rename to daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/impl/S3DeleteObjectImpl.java index 97d2f8d0..e208367b 100644 --- a/daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/S3DeleteObjectImpl.java +++ b/daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/impl/S3DeleteObjectImpl.java @@ -1,8 +1,9 @@ -package org.daemawiki.infra.s3.service; +package org.daemawiki.infra.s3.service.impl; import org.daemawiki.domain.file.component.DeleteFile; import org.daemawiki.domain.file.dto.DeleteFileRequest; import org.daemawiki.exception.h500.ExecuteFailedException; +import org.daemawiki.infra.s3.service.S3DeleteObject; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import reactor.core.publisher.Mono; diff --git a/daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/S3UploadObjectImpl.java b/daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/impl/S3UploadObjectImpl.java similarity index 98% rename from daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/S3UploadObjectImpl.java rename to daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/impl/S3UploadObjectImpl.java index e5989af4..bb579d7f 100644 --- a/daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/S3UploadObjectImpl.java +++ b/daemawiki-api/src/main/java/org/daemawiki/infra/s3/service/impl/S3UploadObjectImpl.java @@ -1,4 +1,4 @@ -package org.daemawiki.infra.s3.service; +package org.daemawiki.infra.s3.service.impl; import org.daemawiki.domain.file.model.File; import org.daemawiki.domain.file.model.FileDetail; @@ -6,6 +6,7 @@ import org.daemawiki.domain.file.repository.FileRepository; import org.daemawiki.exception.h500.ExecuteFailedException; import org.daemawiki.exception.h500.FileUploadFailedException; +import org.daemawiki.infra.s3.service.S3UploadObject; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.io.buffer.DataBufferUtils; import org.springframework.http.MediaType;