diff --git a/src/main/java/com/example/comma/domain/fairytale/entity/Fairytale.java b/src/main/java/com/example/comma/domain/fairytale/entity/Fairytale.java index 41635f9..f6040b0 100644 --- a/src/main/java/com/example/comma/domain/fairytale/entity/Fairytale.java +++ b/src/main/java/com/example/comma/domain/fairytale/entity/Fairytale.java @@ -25,6 +25,8 @@ public class Fairytale { private String recommendImageUrl; + private String homeRecommendImageUrl; + private String channelName; private Year year; diff --git a/src/main/java/com/example/comma/domain/fairytale/service/FairytaleService.java b/src/main/java/com/example/comma/domain/fairytale/service/FairytaleService.java index ccf560a..68744a6 100644 --- a/src/main/java/com/example/comma/domain/fairytale/service/FairytaleService.java +++ b/src/main/java/com/example/comma/domain/fairytale/service/FairytaleService.java @@ -161,7 +161,7 @@ public List getTop2Fairytale() { return randomFairytaleList.stream() .map(fairytale -> new Top2FairytaleResponseDto( fairytale.getId(), - fairytale.getRecommendImageUrl() + fairytale.getHomeRecommendImageUrl() )) .collect(Collectors.toList()); }