Skip to content

Commit

Permalink
feat: 클라이밍장 생성 시 응답에 calendar image url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wonyangs committed Oct 24, 2024
1 parent 666c22f commit 9ebbf84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -5,10 +5,10 @@
import java.util.List;

public record ClimbingGymCreateResponseDto(Long id, String gymName, String thumbnailUrl,
String mapImageUrl, List<Difficulty> difficulties) {
String mapImageUrl, String calendarImageUrl, List<Difficulty> difficulties) {

public static ClimbingGymCreateResponseDto toDto(final ClimbingGym gym) {
return new ClimbingGymCreateResponseDto(gym.getId(), gym.getGymName(),
gym.getThumbnailUrl(), gym.getMapImageUrl(), gym.getDifficulties());
gym.getThumbnailUrl(), gym.getMapImageUrl(), gym.getCalendarImageUrl(), gym.getDifficulties());
}
}

0 comments on commit 9ebbf84

Please sign in to comment.