From 95e41ce6a4e6616927da1fdcf3191e81bb012340 Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 00:35:24 +0900 Subject: [PATCH 1/9] =?UTF-8?q?[chore]=20#14=20aws=20implementation=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 80f474e..7272985 100644 --- a/build.gradle +++ b/build.gradle @@ -49,6 +49,9 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation('nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect') + + // aws + implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' } tasks.named('test') { From 142991b1907d87e36f5effed5bb19ea52df1e30e Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 00:35:57 +0900 Subject: [PATCH 2/9] =?UTF-8?q?[feat]=20#14=20s3=20config=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/sweet/global/config/S3Config.java | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/java/org/sopt/sweet/global/config/S3Config.java diff --git a/src/main/java/org/sopt/sweet/global/config/S3Config.java b/src/main/java/org/sopt/sweet/global/config/S3Config.java new file mode 100644 index 0000000..531e762 --- /dev/null +++ b/src/main/java/org/sopt/sweet/global/config/S3Config.java @@ -0,0 +1,37 @@ +package org.sopt.sweet.global.config; + +import com.amazonaws.auth.AWSStaticCredentialsProvider; +import com.amazonaws.auth.BasicAWSCredentials; +import com.amazonaws.services.s3.AmazonS3; +import com.amazonaws.services.s3.AmazonS3ClientBuilder; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Primary; + +@Configuration +public class S3Config { + + @Value("${cloud.aws.credentials.access-key}") + public String accessKey; + @Value("${cloud.aws.credentials.secret-key}") + public String secretKey; + @Value("${cloud.aws.region.static}") + public String region; + + @Bean + @Primary + public BasicAWSCredentials awsCredentialsProvider(){ + BasicAWSCredentials basicAWSCredentials = new BasicAWSCredentials(accessKey, secretKey); + return basicAWSCredentials; + } + + @Bean + public AmazonS3 amazonS3() { + AmazonS3 s3Builder = AmazonS3ClientBuilder.standard() + .withRegion(region) + .withCredentials(new AWSStaticCredentialsProvider(awsCredentialsProvider())) + .build(); + return s3Builder; + } +} \ No newline at end of file From a4381042c1618a0d714d572cf5088d90938361e1 Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 00:36:20 +0900 Subject: [PATCH 3/9] =?UTF-8?q?[feat]=20#14=20file=20service=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/sweet/global/config/FileService.java | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/main/java/org/sopt/sweet/global/config/FileService.java diff --git a/src/main/java/org/sopt/sweet/global/config/FileService.java b/src/main/java/org/sopt/sweet/global/config/FileService.java new file mode 100644 index 0000000..1905244 --- /dev/null +++ b/src/main/java/org/sopt/sweet/global/config/FileService.java @@ -0,0 +1,50 @@ +package org.sopt.sweet.global.config; + +import com.amazonaws.HttpMethod; +import com.amazonaws.services.s3.AmazonS3; +import com.amazonaws.services.s3.Headers; +import com.amazonaws.services.s3.model.CannedAccessControlList; +import com.amazonaws.services.s3.model.GeneratePresignedUrlRequest; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.net.URL; +import java.util.Date; + +@Service +@RequiredArgsConstructor +public class FileService { + @Value("${cloud.aws.s3.bucket}") + private String bucket; + + private final AmazonS3 amazonS3; + + public String getPreSignedUrl(String prefix, String fileName) { + if (!prefix.equals("")) { + fileName = prefix + "/" + fileName; + } + GeneratePresignedUrlRequest generatePresignedUrlRequest = getGeneratePreSignedUrlRequest(fileName); + URL url = amazonS3.generatePresignedUrl(generatePresignedUrlRequest); + return url.toString(); + } + + private GeneratePresignedUrlRequest getGeneratePreSignedUrlRequest(String fileName) { + GeneratePresignedUrlRequest generatePresignedUrlRequest = + new GeneratePresignedUrlRequest(bucket, fileName) + .withMethod(HttpMethod.PUT) + .withExpiration(getPreSignedUrlExpiration()); + generatePresignedUrlRequest.addRequestParameter( + Headers.S3_CANNED_ACL, + CannedAccessControlList.PublicRead.toString()); + return generatePresignedUrlRequest; + } + + private Date getPreSignedUrlExpiration() { + Date expiration = new Date(); + long expTimeMillis = expiration.getTime(); + expTimeMillis += 1000 * 60 * 2; + expiration.setTime(expTimeMillis); + return expiration; + } +} \ No newline at end of file From ba561c27654c8dee3ca272a4a663303685ec28c0 Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 00:36:48 +0900 Subject: [PATCH 4/9] =?UTF-8?q?[feat]=20#14=20presigned=20URL=20controller?= =?UTF-8?q?=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gifter/controller/GifterController.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/org/sopt/sweet/domain/gifter/controller/GifterController.java b/src/main/java/org/sopt/sweet/domain/gifter/controller/GifterController.java index e7038f5..e88afd1 100644 --- a/src/main/java/org/sopt/sweet/domain/gifter/controller/GifterController.java +++ b/src/main/java/org/sopt/sweet/domain/gifter/controller/GifterController.java @@ -1,6 +1,13 @@ package org.sopt.sweet.domain.gifter.controller; import lombok.RequiredArgsConstructor; +import org.sopt.sweet.domain.gifter.dto.request.PresignedURLRequestDto; +import org.sopt.sweet.domain.gifter.dto.response.PresignedURLResponseDto; +import org.sopt.sweet.domain.gifter.service.GifterService; +import org.sopt.sweet.global.common.SuccessResponse; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -8,4 +15,12 @@ @RequestMapping("/api/gifter") @RestController public class GifterController implements GifterApi { + + private final GifterService gifterService; + + @PostMapping("/presignedURL") + public ResponseEntity> getPresignedURL(@RequestBody PresignedURLRequestDto presignedURLRequestDto) { + final PresignedURLResponseDto presignedURLResponseDto = gifterService.getPresignedURL(presignedURLRequestDto); + return SuccessResponse.created(presignedURLResponseDto); + } } From c3da90f583e5215a1c6349d787d887566c7a85f0 Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 00:36:59 +0900 Subject: [PATCH 5/9] =?UTF-8?q?[feat]=20#14=20presigned=20URL=20dto=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gifter/dto/request/PresignedURLRequestDto.java | 6 ++++++ .../dto/response/PresignedURLResponseDto.java | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/main/java/org/sopt/sweet/domain/gifter/dto/request/PresignedURLRequestDto.java create mode 100644 src/main/java/org/sopt/sweet/domain/gifter/dto/response/PresignedURLResponseDto.java diff --git a/src/main/java/org/sopt/sweet/domain/gifter/dto/request/PresignedURLRequestDto.java b/src/main/java/org/sopt/sweet/domain/gifter/dto/request/PresignedURLRequestDto.java new file mode 100644 index 0000000..ee33d56 --- /dev/null +++ b/src/main/java/org/sopt/sweet/domain/gifter/dto/request/PresignedURLRequestDto.java @@ -0,0 +1,6 @@ +package org.sopt.sweet.domain.gifter.dto.request; + +public record PresignedURLRequestDto( + String fileName +) { +} diff --git a/src/main/java/org/sopt/sweet/domain/gifter/dto/response/PresignedURLResponseDto.java b/src/main/java/org/sopt/sweet/domain/gifter/dto/response/PresignedURLResponseDto.java new file mode 100644 index 0000000..edde85a --- /dev/null +++ b/src/main/java/org/sopt/sweet/domain/gifter/dto/response/PresignedURLResponseDto.java @@ -0,0 +1,14 @@ +package org.sopt.sweet.domain.gifter.dto.response; + +import lombok.Builder; + +@Builder +public record PresignedURLResponseDto( + String presignedURL +) { + public static PresignedURLResponseDto of(String presignedURL){ + return PresignedURLResponseDto.builder() + .presignedURL(presignedURL) + .build(); + } +} From e123d89c85bff26d8d8e7c64cf3bbb834cb4175e Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 00:37:09 +0900 Subject: [PATCH 6/9] =?UTF-8?q?[feat]=20#14=20presigned=20URL=20service=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sweet/domain/gifter/service/GifterService.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/sopt/sweet/domain/gifter/service/GifterService.java b/src/main/java/org/sopt/sweet/domain/gifter/service/GifterService.java index 0bf5fa9..a1ae990 100644 --- a/src/main/java/org/sopt/sweet/domain/gifter/service/GifterService.java +++ b/src/main/java/org/sopt/sweet/domain/gifter/service/GifterService.java @@ -1,9 +1,21 @@ package org.sopt.sweet.domain.gifter.service; +import lombok.RequiredArgsConstructor; +import org.sopt.sweet.domain.gifter.dto.request.PresignedURLRequestDto; +import org.sopt.sweet.domain.gifter.dto.response.PresignedURLResponseDto; +import org.sopt.sweet.global.config.FileService; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service +@RequiredArgsConstructor @Transactional public class GifterService { + + private final FileService fileService; + + public PresignedURLResponseDto getPresignedURL(PresignedURLRequestDto presignedURLRequestDto) { + String URL = fileService.getPreSignedUrl("gifterImg", presignedURLRequestDto.fileName()); + return PresignedURLResponseDto.of(URL); + } } From 6ea7759d33228a7ee6086a11c585c7c76780ab16 Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 00:38:17 +0900 Subject: [PATCH 7/9] =?UTF-8?q?[rename]=20#14=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EC=A0=95=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/sweet/domain/member/controller/MemberController.java | 2 +- .../dto/{request => response}/MemberTokenResponseDto.java | 2 +- .../org/sopt/sweet/domain/member/service/MemberService.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/org/sopt/sweet/domain/member/dto/{request => response}/MemberTokenResponseDto.java (91%) diff --git a/src/main/java/org/sopt/sweet/domain/member/controller/MemberController.java b/src/main/java/org/sopt/sweet/domain/member/controller/MemberController.java index 29b910f..3fd3a6b 100644 --- a/src/main/java/org/sopt/sweet/domain/member/controller/MemberController.java +++ b/src/main/java/org/sopt/sweet/domain/member/controller/MemberController.java @@ -1,7 +1,7 @@ package org.sopt.sweet.domain.member.controller; import lombok.RequiredArgsConstructor; -import org.sopt.sweet.domain.member.dto.request.MemberTokenResponseDto; +import org.sopt.sweet.domain.member.dto.response.MemberTokenResponseDto; import org.sopt.sweet.domain.member.service.MemberService; import org.sopt.sweet.global.common.SuccessResponse; import org.springframework.http.ResponseEntity; diff --git a/src/main/java/org/sopt/sweet/domain/member/dto/request/MemberTokenResponseDto.java b/src/main/java/org/sopt/sweet/domain/member/dto/response/MemberTokenResponseDto.java similarity index 91% rename from src/main/java/org/sopt/sweet/domain/member/dto/request/MemberTokenResponseDto.java rename to src/main/java/org/sopt/sweet/domain/member/dto/response/MemberTokenResponseDto.java index c5ac1ea..85caa94 100644 --- a/src/main/java/org/sopt/sweet/domain/member/dto/request/MemberTokenResponseDto.java +++ b/src/main/java/org/sopt/sweet/domain/member/dto/response/MemberTokenResponseDto.java @@ -1,4 +1,4 @@ -package org.sopt.sweet.domain.member.dto.request; +package org.sopt.sweet.domain.member.dto.response; import lombok.Builder; diff --git a/src/main/java/org/sopt/sweet/domain/member/service/MemberService.java b/src/main/java/org/sopt/sweet/domain/member/service/MemberService.java index c995293..5dbb6b7 100644 --- a/src/main/java/org/sopt/sweet/domain/member/service/MemberService.java +++ b/src/main/java/org/sopt/sweet/domain/member/service/MemberService.java @@ -1,7 +1,7 @@ package org.sopt.sweet.domain.member.service; import lombok.RequiredArgsConstructor; -import org.sopt.sweet.domain.member.dto.request.MemberTokenResponseDto; +import org.sopt.sweet.domain.member.dto.response.MemberTokenResponseDto; import org.sopt.sweet.global.config.auth.jwt.JwtProvider; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; From e80e6bfe2ac22e62543e656e6ef86ef9a0670f80 Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 01:10:55 +0900 Subject: [PATCH 8/9] =?UTF-8?q?[rename]=20#14=20swagger=20=EC=84=A4?= =?UTF-8?q?=EB=AA=85=20=EB=B3=B4=EC=B6=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/gifter/controller/GifterApi.java | 27 +++++++++++++++ .../domain/member/controller/MemberApi.java | 2 +- .../opengraph/controller/OpengraphAPI.java | 34 +++++++++++++++++++ .../controller/OpengraphController.java | 8 ++--- .../opengraph/service/OpengraphService.java | 6 ++-- 5 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 src/main/java/org/sopt/sweet/domain/opengraph/controller/OpengraphAPI.java diff --git a/src/main/java/org/sopt/sweet/domain/gifter/controller/GifterApi.java b/src/main/java/org/sopt/sweet/domain/gifter/controller/GifterApi.java index 1f738e4..d7b8a2a 100644 --- a/src/main/java/org/sopt/sweet/domain/gifter/controller/GifterApi.java +++ b/src/main/java/org/sopt/sweet/domain/gifter/controller/GifterApi.java @@ -1,7 +1,34 @@ package org.sopt.sweet.domain.gifter.controller; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.responses.ApiResponses; import io.swagger.v3.oas.annotations.tags.Tag; +import org.sopt.sweet.domain.gifter.dto.request.PresignedURLRequestDto; +import org.sopt.sweet.global.common.SuccessResponse; +import org.springframework.http.ResponseEntity; @Tag(name = "선물 모임", description = "선물 모임 관련 API") public interface GifterApi { + + @ApiResponses( + value = { + @ApiResponse(responseCode = "201"), + } + ) + @Operation(summary = "presigned URL 발급 API") + ResponseEntity> getPresignedURL( + @Parameter( + description = "request dto", + required = true, + content = @Content( + schema = @Schema(implementation = PresignedURLRequestDto.class, + required = true), + mediaType = "application/json" + ) + ) PresignedURLRequestDto presignedURLRequestDto + ); } diff --git a/src/main/java/org/sopt/sweet/domain/member/controller/MemberApi.java b/src/main/java/org/sopt/sweet/domain/member/controller/MemberApi.java index ec8f290..6aa2e2a 100644 --- a/src/main/java/org/sopt/sweet/domain/member/controller/MemberApi.java +++ b/src/main/java/org/sopt/sweet/domain/member/controller/MemberApi.java @@ -18,7 +18,7 @@ public interface MemberApi { @ApiResponse(responseCode = "404", content = @Content) } ) - @Operation(summary = "프로필을 조회") + @Operation(summary = "스웨거 테스트용 API") ResponseEntity> testSwagger( ); diff --git a/src/main/java/org/sopt/sweet/domain/opengraph/controller/OpengraphAPI.java b/src/main/java/org/sopt/sweet/domain/opengraph/controller/OpengraphAPI.java new file mode 100644 index 0000000..ad8838f --- /dev/null +++ b/src/main/java/org/sopt/sweet/domain/opengraph/controller/OpengraphAPI.java @@ -0,0 +1,34 @@ +package org.sopt.sweet.domain.opengraph.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.responses.ApiResponses; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.sopt.sweet.domain.gifter.dto.request.PresignedURLRequestDto; +import org.sopt.sweet.domain.opengraph.dto.OpengraphRequestDto; +import org.sopt.sweet.global.common.SuccessResponse; +import org.springframework.http.ResponseEntity; + +@Tag(name = "오픈그래프", description = "오픈그래프 관련 API") +public interface OpengraphAPI { + @ApiResponses( + value = { + @ApiResponse(responseCode = "201"), + } + ) + @Operation(summary = "오픈그래프 탐색 API") + ResponseEntity> getOpenGraph( + @Parameter( + description = "request dto", + required = true, + content = @Content( + schema = @Schema(implementation = OpengraphRequestDto.class, + required = true), + mediaType = "application/json" + ) + ) OpengraphRequestDto opengraphRequestDto + ); +} diff --git a/src/main/java/org/sopt/sweet/domain/opengraph/controller/OpengraphController.java b/src/main/java/org/sopt/sweet/domain/opengraph/controller/OpengraphController.java index 47b8254..d248f7c 100644 --- a/src/main/java/org/sopt/sweet/domain/opengraph/controller/OpengraphController.java +++ b/src/main/java/org/sopt/sweet/domain/opengraph/controller/OpengraphController.java @@ -2,7 +2,7 @@ import lombok.RequiredArgsConstructor; import org.sopt.sweet.domain.opengraph.dto.OpengraphResponseDto; -import org.sopt.sweet.domain.opengraph.dto.URLRequestDto; +import org.sopt.sweet.domain.opengraph.dto.OpengraphRequestDto; import org.sopt.sweet.domain.opengraph.service.OpengraphService; import org.sopt.sweet.global.common.SuccessResponse; import org.springframework.http.ResponseEntity; @@ -11,14 +11,14 @@ @RequiredArgsConstructor @RequestMapping("/api/opengraph") @RestController -public class OpengraphController { +public class OpengraphController implements OpengraphAPI{ private final OpengraphService opengraphService; @ResponseBody @GetMapping(value = "") - public ResponseEntity> getOpenGraph(@RequestBody URLRequestDto urlRequestDto) { - OpengraphResponseDto opengraphResponseDto = opengraphService.getData(urlRequestDto); + public ResponseEntity> getOpenGraph(@RequestBody OpengraphRequestDto opengraphRequestDto) { + OpengraphResponseDto opengraphResponseDto = opengraphService.getData(opengraphRequestDto); return SuccessResponse.ok(opengraphResponseDto); } diff --git a/src/main/java/org/sopt/sweet/domain/opengraph/service/OpengraphService.java b/src/main/java/org/sopt/sweet/domain/opengraph/service/OpengraphService.java index fe96e1e..c233d83 100644 --- a/src/main/java/org/sopt/sweet/domain/opengraph/service/OpengraphService.java +++ b/src/main/java/org/sopt/sweet/domain/opengraph/service/OpengraphService.java @@ -2,7 +2,7 @@ import lombok.RequiredArgsConstructor; import org.sopt.sweet.domain.opengraph.dto.OpengraphResponseDto; -import org.sopt.sweet.domain.opengraph.dto.URLRequestDto; +import org.sopt.sweet.domain.opengraph.dto.OpengraphRequestDto; import org.sopt.sweet.domain.opengraph.lib.OpenGraph; import org.sopt.sweet.global.error.exception.EntityNotFoundException; import org.springframework.stereotype.Service; @@ -15,9 +15,9 @@ @Transactional public class OpengraphService { - public OpengraphResponseDto getData(URLRequestDto urlRequestDto) { + public OpengraphResponseDto getData(OpengraphRequestDto opengraphRequestDto) { try { - OpenGraph page = new OpenGraph(urlRequestDto.BaseURL(), true); + OpenGraph page = new OpenGraph(opengraphRequestDto.BaseURL(), true); return OpengraphResponseDto.of(getContent(page, "title"), getContent(page, "image")); } catch (Exception e) { e.printStackTrace(); From 40bcbe388dee92330cbd26691274271ca5a77810 Mon Sep 17 00:00:00 2001 From: ziiyouth Date: Sun, 7 Jan 2024 01:11:17 +0900 Subject: [PATCH 9/9] =?UTF-8?q?[rename]=20#14=20=EC=98=A4=ED=94=88?= =?UTF-8?q?=EA=B7=B8=EB=9E=98=ED=94=84=20request=20dto=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=20=EB=B3=80=EA=B2=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/{URLRequestDto.java => OpengraphRequestDto.java} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/main/java/org/sopt/sweet/domain/opengraph/dto/{URLRequestDto.java => OpengraphRequestDto.java} (68%) diff --git a/src/main/java/org/sopt/sweet/domain/opengraph/dto/URLRequestDto.java b/src/main/java/org/sopt/sweet/domain/opengraph/dto/OpengraphRequestDto.java similarity index 68% rename from src/main/java/org/sopt/sweet/domain/opengraph/dto/URLRequestDto.java rename to src/main/java/org/sopt/sweet/domain/opengraph/dto/OpengraphRequestDto.java index 9621a77..e844ee9 100644 --- a/src/main/java/org/sopt/sweet/domain/opengraph/dto/URLRequestDto.java +++ b/src/main/java/org/sopt/sweet/domain/opengraph/dto/OpengraphRequestDto.java @@ -1,6 +1,6 @@ package org.sopt.sweet.domain.opengraph.dto; -public record URLRequestDto( +public record OpengraphRequestDto( String BaseURL ) { }