Skip to content

Commit

Permalink
fix: 상세 조회 응답 필드 수정 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom authored Aug 24, 2024
1 parent 9e4f1cb commit a07a849
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public record ArtistSearchPaginationApiParam(
@Schema(description = "아티스트 ID")
UUID id,
@Schema(description = "아티스트 이미지 URL")
String imageUrl,
String imageURL,
@Schema(description = "아티스트 한글 이름")
String koreanName,
@Schema(description = "아티스트 영문 이름")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public record ArtistSubscriptionPaginationApiParam(
@Schema(description = "아티스트 ID")
UUID id,
@Schema(description = "아티스트 이미지 URL")
String imageUrl,
String imageURL,
@Schema(description = "아티스트 한글 이름")
String koreanName,
@Schema(description = "아티스트 영문 이름")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public record ArtistUnsubscriptionPaginationApiParam(
@Schema(description = "아티스트 ID")
UUID id,
@Schema(description = "아티스트 이미지 URL")
String imageUrl,
String imageURL,
@Schema(description = "아티스트 한글 이름")
String koreanName,
@Schema(description = "아티스트 영문 이름")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public record ShowAlertPaginationApiParam(
@Schema(description = "공연 장소")
String location,

@Schema(description = "공연 이미지")
String image,
@Schema(description = "공연 이미지 URL")
String imageURL,

@Schema(description = "cursorID로서 공연 티켓팅 시간 ID")
UUID showTicketingTimeId,
@Schema(description = "cursorID")
UUID cursorId,

@Schema(description = "cursorValue로서 공연 티켓팅 날짜")
LocalDateTime ticketingAt
@Schema(description = "cursorValue")
LocalDateTime cursorValue
) {

public static ShowAlertPaginationApiParam from(ShowAlertPaginationServiceParam serviceParam) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public record ShowSearchPaginationApiParam(
String location,

@Schema(description = "공연 이미지")
String image
String imageURL
) {

public static ShowSearchPaginationApiParam from(ShowSearchPaginationServiceParam serviceParam) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ public record ShowArtistApiResponse(
@Schema(description = "아티스트 영어 이름")
String englishName,

@Schema(description = "아티스트 이미지 주소")
String image
@Schema(description = "아티스트 이미지 URL")
String imageURL
) {

public static ShowArtistApiResponse from(ShowArtistServiceResponse artists) {
return ShowArtistApiResponse.builder()
.id(artists.id())
.koreanName(artists.koreanName())
.englishName(artists.englishName())
.image(artists.image())
.imageURL(artists.image())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ public record ShowArtistPaginationApiParam(
UUID id,
String koreanName,
String englishName,
String image
String imageURL
) {

public static ShowArtistPaginationApiParam from(ShowArtistSimpleServiceResponse response) {
return ShowArtistPaginationApiParam.builder()
.id(response.id())
.koreanName(response.koreanName())
.englishName(response.englishName())
.image(response.image())
.imageURL(response.image())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public record ShowDetailApiResponse(
@Schema(description = "공연 종료일")
String endDate,

@Schema(description = "공연 장소")
String location,

@Schema(description = "공연 포스터 주소")
String posterImageURL,

Expand All @@ -47,6 +50,7 @@ public static ShowDetailApiResponse from(ShowDetailServiceResponse show) {
.name(show.title())
.startDate(DateTimeUtil.formatDate(show.startDate()))
.endDate(DateTimeUtil.formatDate(show.endDate()))
.location(show.location())
.posterImageURL(show.posterImageURL())
.artists(
show.artists().stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ public record ShowDetailServiceResponse(

UUID id,
String title,
String content,
LocalDate startDate,
LocalDate endDate,
String location,
String posterImageURL,
List<ShowArtistServiceResponse> artists,
List<ShowGenreServiceResponse> genres,
Expand All @@ -25,8 +27,10 @@ public static ShowDetailServiceResponse from(ShowDetailDomainResponse show) {
return ShowDetailServiceResponse.builder()
.id(show.show().id())
.title(show.show().title())
.content(show.show().content())
.startDate(show.show().startDate())
.endDate(show.show().endDate())
.location(show.show().location())
.posterImageURL(show.show().image())
.artists(
show.artists().stream()
Expand Down

0 comments on commit a07a849

Please sign in to comment.