From 1bfd6a193cc16f1734518a93e4dd6e40595935ed Mon Sep 17 00:00:00 2001 From: thguss Date: Fri, 3 May 2024 02:41:47 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20=EB=8D=B0=EC=9D=BC=EB=A6=AC=20?= =?UTF-8?q?=EB=A3=A8=ED=8B=B4=20=EC=A1=B0=ED=9A=8C=20=EB=B0=B0=EA=B2=BD=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=9D=B4=EC=8A=88=20=EB=8C=80?= =?UTF-8?q?=EC=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/response/DailyRoutineListGetServiceResponse.java | 2 +- .../java/com/soptie/server/theme/entity/ThemeImageInfo.java | 5 ++++- .../java/com/soptie/server/support/fixture/ThemeFixture.java | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/soptie/server/routine/service/dto/response/DailyRoutineListGetServiceResponse.java b/src/main/java/com/soptie/server/routine/service/dto/response/DailyRoutineListGetServiceResponse.java index 2223d9be..5bb76f3f 100644 --- a/src/main/java/com/soptie/server/routine/service/dto/response/DailyRoutineListGetServiceResponse.java +++ b/src/main/java/com/soptie/server/routine/service/dto/response/DailyRoutineListGetServiceResponse.java @@ -24,7 +24,7 @@ public static DailyRoutineListGetServiceResponse of(List routines) { public static DailyRoutineListGetServiceResponse of(List routines, Theme theme) { return DailyRoutineListGetServiceResponse.builder() .routines(routines.stream().map(DailyRoutineServiceResponse::of).toList()) - .backgroundImageUrl(theme.getImageInfo().getBackgroundImageUrl()) + .backgroundImageUrl(theme.getImageInfo().getDailyBackgroundImageUrl()) .build(); } diff --git a/src/main/java/com/soptie/server/theme/entity/ThemeImageInfo.java b/src/main/java/com/soptie/server/theme/entity/ThemeImageInfo.java index 6c78f0ad..0d38bf85 100644 --- a/src/main/java/com/soptie/server/theme/entity/ThemeImageInfo.java +++ b/src/main/java/com/soptie/server/theme/entity/ThemeImageInfo.java @@ -13,8 +13,11 @@ public class ThemeImageInfo { private String backgroundImageUrl; - public ThemeImageInfo(String iconImageUrl, String backgroundImageUrl) { + private String dailyBackgroundImageUrl; + + public ThemeImageInfo(String iconImageUrl, String backgroundImageUrl, String dailyBackgroundImageUrl) { this.iconImageUrl = iconImageUrl; this.backgroundImageUrl = backgroundImageUrl; + this.dailyBackgroundImageUrl = dailyBackgroundImageUrl; } } diff --git a/src/test/java/com/soptie/server/support/fixture/ThemeFixture.java b/src/test/java/com/soptie/server/support/fixture/ThemeFixture.java index a60ddf23..daa935f0 100644 --- a/src/test/java/com/soptie/server/support/fixture/ThemeFixture.java +++ b/src/test/java/com/soptie/server/support/fixture/ThemeFixture.java @@ -8,7 +8,7 @@ public class ThemeFixture { private Long id; private String name; private String color; - private final ThemeImageInfo imageInfo = new ThemeImageInfo("https://...", "https://..."); + private final ThemeImageInfo imageInfo = new ThemeImageInfo("https://...", "https://...", "https://..."); private ThemeFixture() { }