Skip to content

Commit

Permalink
#201 fix:상세 조회 위치 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
leeseunghakhello committed Jan 6, 2024
1 parent 5f1d2f0 commit bd1363c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ExperienceDetailRes {
private Long price;
private List<ExplanationRes> explanation;
private String description;
private String location;

public static ExperienceDetailRes toDetailDto(ExperienceGift experienceGift, List<Explanation> explanations,List<String> giftImgUrl){
ExperienceDetailRes experienceDetailRes=new ExperienceDetailRes();
Expand All @@ -32,6 +33,7 @@ public static ExperienceDetailRes toDetailDto(ExperienceGift experienceGift, Lis
experienceDetailRes.subtitle=experienceGift.getSubtitle().getTitle();
experienceDetailRes.price=experienceGift.getPrice();
experienceDetailRes.description=experienceGift.getDescription();
experienceDetailRes.location=experienceGift.getLocation();
experienceDetailRes.explanation=explanations.stream().map(m -> ExplanationRes.toDto(m.getStage(),m.getDescription(), m.getExplanationKey())).collect(Collectors.toList());
return experienceDetailRes;
}
Expand Down

0 comments on commit bd1363c

Please sign in to comment.