From c3c787c916dab1ed93278bc7a02a06aefc808452 Mon Sep 17 00:00:00 2001 From: sung-silver Date: Fri, 19 Jan 2024 05:31:00 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20UniversityExamRecordSheetService=20?= =?UTF-8?q?=EB=82=B4=20getUniversityExamRecordSheetPreSignedUrl()=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=82=AC=EC=9A=A9=20=EC=84=9C=EB=B9=84=EC=8A=A4=20?= =?UTF-8?q?=EB=B0=8F=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/UniversityExamRecordSheetService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nonsoolmateServer/src/main/java/com/nonsoolmate/nonsoolmateServer/domain/universityExamRecord/service/UniversityExamRecordSheetService.java b/nonsoolmateServer/src/main/java/com/nonsoolmate/nonsoolmateServer/domain/universityExamRecord/service/UniversityExamRecordSheetService.java index 8592fae..4b84266 100644 --- a/nonsoolmateServer/src/main/java/com/nonsoolmate/nonsoolmateServer/domain/universityExamRecord/service/UniversityExamRecordSheetService.java +++ b/nonsoolmateServer/src/main/java/com/nonsoolmate/nonsoolmateServer/domain/universityExamRecord/service/UniversityExamRecordSheetService.java @@ -2,7 +2,7 @@ import static com.nonsoolmate.nonsoolmateServer.external.aws.FolderName.EXAM_SHEET_FOLDER_NAME; -import com.nonsoolmate.nonsoolmateServer.external.aws.service.S3Service; +import com.nonsoolmate.nonsoolmateServer.external.aws.service.CloudFrontService; import com.nonsoolmate.nonsoolmateServer.external.aws.service.vo.PreSignedUrlVO; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; @@ -12,10 +12,10 @@ @Transactional(readOnly = true) @RequiredArgsConstructor public class UniversityExamRecordSheetService { - private final S3Service s3Service; + private final CloudFrontService cloudFrontService; public PreSignedUrlVO getUniversityExamRecordSheetPreSignedUrl() { - return s3Service.getUploadPreSignedUrl(EXAM_SHEET_FOLDER_NAME); + return cloudFrontService.createPreSignedPutUrl(EXAM_SHEET_FOLDER_NAME); } }