Skip to content

Commit

Permalink
[HOTFIX] 데일리 루틴 아이콘 이미지 이슈 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed May 3, 2024
1 parent bb0b54b commit 9bf677b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private static DailyThemeResponse of(ThemeServiceResponse response) {
return DailyThemeResponse.builder()
.themeId(response.themeId())
.name(response.name())
.iconImageUrl(response.iconImageUrl())
.iconImageUrl(response.dailyIconImageUrl())
.backgroundImageUrl(response.dailyBackgroundImageUrl())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ public class ThemeImageInfo {

private String dailyBackgroundImageUrl;

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

public ThemeImageInfo(String iconImageUrl, String backgroundImageUrl, String dailyBackgroundImageUrl, String dailyIconImageUrl) {
this.iconImageUrl = iconImageUrl;
this.backgroundImageUrl = backgroundImageUrl;
this.dailyBackgroundImageUrl = dailyBackgroundImageUrl;
this.dailyIconImageUrl = dailyIconImageUrl;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public record ThemeServiceResponse(
String name,
String iconImageUrl,
String backgroundImageUrl,
String dailyBackgroundImageUrl
String dailyBackgroundImageUrl,
String dailyIconImageUrl
) {

private static ThemeServiceResponse of(Theme theme) {
Expand All @@ -35,6 +36,7 @@ private static ThemeServiceResponse of(Theme theme) {
.iconImageUrl(theme.getImageInfo().getIconImageUrl())
.backgroundImageUrl(theme.getImageInfo().getBackgroundImageUrl())
.dailyBackgroundImageUrl(theme.getImageInfo().getDailyBackgroundImageUrl())
.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://...");
private final ThemeImageInfo imageInfo = new ThemeImageInfo("https://...", "https://...", "https://...", "https://...");

private ThemeFixture() {
}
Expand Down

0 comments on commit 9bf677b

Please sign in to comment.