From d498f7ba6ba2588b1fda19020e8997159a8e1163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=86=B7=E1=84=8C=E1=85=AE=E1=84=86?= =?UTF-8?q?=E1=85=B5=E1=86=AB?= Date: Sat, 23 Nov 2024 12:26:18 +0900 Subject: [PATCH 1/5] =?UTF-8?q?feat=20-=20#199=20Banner=20domain=EC=97=90?= =?UTF-8?q?=20backgroundColors=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/sopt/org/hmh/domain/banner/Banner.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/sopt/org/hmh/domain/banner/Banner.java b/src/main/java/sopt/org/hmh/domain/banner/Banner.java index 09c54308..ef9b6837 100644 --- a/src/main/java/sopt/org/hmh/domain/banner/Banner.java +++ b/src/main/java/sopt/org/hmh/domain/banner/Banner.java @@ -22,4 +22,5 @@ public class Banner { private String subTitle; private String imageUrl; private String linkUrl; + private String backgroundColors; } From 3213ca6ec1693ce423fed03ddacecb876d4a29bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=86=B7=E1=84=8C=E1=85=AE=E1=84=86?= =?UTF-8?q?=E1=85=B5=E1=86=AB?= Date: Sat, 23 Nov 2024 12:27:11 +0900 Subject: [PATCH 2/5] =?UTF-8?q?feat=20-=20#199=20Banner=20Response?= =?UTF-8?q?=EC=97=90=20backgroundColors=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/sopt/org/hmh/domain/banner/BannerResponse.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java b/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java index 2a2d831f..c5edc322 100644 --- a/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java +++ b/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java @@ -2,12 +2,17 @@ import lombok.Builder; +import java.util.Arrays; +import java.util.List; + @Builder public record BannerResponse( String title, String subTitle, String imageUrl, - String linkUrl + String linkUrl, + List backgroundColors + ) { public static BannerResponse of(Banner banner) { return BannerResponse.builder() From 79ad6bf77a499f76568b119920990a618910fcf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=86=B7=E1=84=8C=E1=85=AE=E1=84=86?= =?UTF-8?q?=E1=85=B5=E1=86=AB?= Date: Sat, 23 Nov 2024 12:28:08 +0900 Subject: [PATCH 3/5] =?UTF-8?q?feat=20-=20#199=20DB=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EA=B0=80=EC=A0=B8=EC=98=A8=20=EA=B0=92=EC=9D=84=20=ED=8C=8C?= =?UTF-8?q?=EC=8B=B1=ED=95=B4=EC=84=9C=20=EB=AC=B8=EC=9E=90=EC=97=B4?= =?UTF-8?q?=EB=A1=9C=20=EB=B0=94=EA=BF=94=EC=A3=BC=EB=8A=94=20=EB=A9=94?= =?UTF-8?q?=EC=86=8C=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/sopt/org/hmh/domain/banner/BannerResponse.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java b/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java index c5edc322..a175a888 100644 --- a/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java +++ b/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java @@ -20,6 +20,12 @@ public static BannerResponse of(Banner banner) { .subTitle(banner.getSubTitle()) .imageUrl(banner.getImageUrl()) .linkUrl(banner.getLinkUrl()) + .backgroundColors(convertToColorArray(banner.getBackgroundColors())) .build(); } + + private static List convertToColorArray(String input) { + String[] colorArray = input.split(",\\s*"); + return Arrays.asList(colorArray); + } } From 3c5ff4cd1745d5954116386db9a012db88d99e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=86=B7=E1=84=8C=E1=85=AE=E1=84=86?= =?UTF-8?q?=E1=85=B5=E1=86=AB?= Date: Sat, 23 Nov 2024 17:13:17 +0900 Subject: [PATCH 4/5] =?UTF-8?q?chore=20-=20#199=20=EB=B6=88=EB=B3=80?= =?UTF-8?q?=EC=84=B1=EC=9D=84=20=EC=9C=84=ED=95=9C=20List.of=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java b/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java index a175a888..cbb7f19f 100644 --- a/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java +++ b/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java @@ -26,6 +26,6 @@ public static BannerResponse of(Banner banner) { private static List convertToColorArray(String input) { String[] colorArray = input.split(",\\s*"); - return Arrays.asList(colorArray); + return List.of(colorArray); } } From 5630321ce30dd0a10369ac25d304d0b3dc5fad8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=86=B7=E1=84=8C=E1=85=AE=E1=84=86?= =?UTF-8?q?=E1=85=B5=E1=86=AB?= Date: Sat, 23 Nov 2024 17:14:00 +0900 Subject: [PATCH 5/5] =?UTF-8?q?chore=20-=20#199=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20import=EB=AC=B8=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java b/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java index cbb7f19f..87407b44 100644 --- a/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java +++ b/src/main/java/sopt/org/hmh/domain/banner/BannerResponse.java @@ -2,7 +2,6 @@ import lombok.Builder; -import java.util.Arrays; import java.util.List; @Builder