Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOTFIX] 구버전 이미지 이슈 대응 #260

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static DailyRoutineListGetServiceResponse of(List<Routine> routines) {
public static DailyRoutineListGetServiceResponse of(List<Routine> routines, Theme theme) {
return DailyRoutineListGetServiceResponse.builder()
.routines(routines.stream().map(DailyRoutineServiceResponse::of).toList())
.backgroundImageUrl(theme.getImageInfo().getDailyBackgroundImageUrl())
.backgroundImageUrl(theme.getImageInfo().getDailyCardImageUrl())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static HappinessSubRoutineListGetServiceResponse of(Routine routine, List
.themeName(routine.getTheme().getName())
.themeColor(routine.getTheme().getColor())
.iconImageUrl(routine.getTheme().getImageInfo().getIconImageUrl())
.backgroundImageUrl(routine.getTheme().getImageInfo().getBackgroundImageUrl())
.backgroundImageUrl(routine.getTheme().getImageInfo().getHappinessCardImageUrl())
.challenges(challenges.stream().map(HappinessSubRoutineServiceResponse::of).toList())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ public class ThemeImageInfo {

private String backgroundImageUrl;

private String dailyBackgroundImageUrl;
private String dailyCardImageUrl;

private String dailyIconImageUrl;

public ThemeImageInfo(String iconImageUrl, String backgroundImageUrl, String dailyBackgroundImageUrl, String dailyIconImageUrl) {
private String happinessCardImageUrl;

public ThemeImageInfo(String iconImageUrl, String backgroundImageUrl, String dailyCardImageUrl, String dailyIconImageUrl, String happinessCardImageUrl) {
this.iconImageUrl = iconImageUrl;
this.backgroundImageUrl = backgroundImageUrl;
this.dailyBackgroundImageUrl = dailyBackgroundImageUrl;
this.dailyCardImageUrl = dailyCardImageUrl;
this.dailyIconImageUrl = dailyIconImageUrl;
this.happinessCardImageUrl = happinessCardImageUrl;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private static ThemeServiceResponse of(Theme theme) {
.name(theme.getName())
.iconImageUrl(theme.getImageInfo().getIconImageUrl())
.backgroundImageUrl(theme.getImageInfo().getBackgroundImageUrl())
.dailyBackgroundImageUrl(theme.getImageInfo().getDailyBackgroundImageUrl())
.dailyBackgroundImageUrl(theme.getImageInfo().getDailyCardImageUrl())
.dailyIconImageUrl(theme.getImageInfo().getDailyIconImageUrl())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ThemeFixture {
private Long id;
private String name;
private String color;
private final ThemeImageInfo imageInfo = new ThemeImageInfo("https://...", "https://...", "https://...", "https://...");
private final ThemeImageInfo imageInfo = new ThemeImageInfo("https://...", "https://...", "https://...", "https://...", "https://...");

private ThemeFixture() {
}
Expand Down
Loading