-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
991 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ow-api/src/main/java/com/example/show/controller/dto/param/ShowTicketingSiteApiParam.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.example.show.controller.dto.param; | ||
|
||
import com.example.show.service.dto.param.ShowTicketingSiteServiceParam; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record ShowTicketingSiteApiParam( | ||
String siteName, | ||
String siteURL | ||
) { | ||
|
||
public static ShowTicketingSiteApiParam from(ShowTicketingSiteServiceParam param) { | ||
return ShowTicketingSiteApiParam.builder() | ||
.siteName(param.siteName()) | ||
.siteURL(param.siteURL()) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
.../show-api/src/main/java/com/example/show/controller/dto/response/SeatInfoApiResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package com.example.show.controller.dto.response; | ||
|
||
import java.util.Map; | ||
import org.example.entity.show.info.SeatPrice; | ||
import org.example.entity.show.info.SeatPrices; | ||
|
||
public record SeatInfoApiResponse( | ||
Map<String, Integer> priceInformation | ||
) { | ||
|
||
public static SeatInfoApiResponse from(SeatPrice seatPrice) { | ||
return new SeatInfoApiResponse(seatPrice.getPriceInformation()); | ||
public static SeatInfoApiResponse from(SeatPrices seatPrices) { | ||
return new SeatInfoApiResponse(seatPrices.getPriceBySeat()); | ||
} | ||
|
||
|
||
} |
32 changes: 32 additions & 0 deletions
32
...how-api/src/main/java/com/example/show/controller/dto/response/ShowArtistApiResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.example.show.controller.dto.response; | ||
|
||
import com.example.show.service.dto.response.ShowArtistServiceResponse; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.UUID; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record ShowArtistApiResponse( | ||
|
||
@Schema(description = "아티스트 ID") | ||
UUID id, | ||
|
||
@Schema(description = "아티스트 한국어 이름") | ||
String koreanName, | ||
|
||
@Schema(description = "아티스트 영어 이름") | ||
String englishName, | ||
|
||
@Schema(description = "아티스트 이미지 주소") | ||
String image | ||
) { | ||
|
||
public static ShowArtistApiResponse from(ShowArtistServiceResponse artists) { | ||
return ShowArtistApiResponse.builder() | ||
.id(artists.id()) | ||
.koreanName(artists.koreanName()) | ||
.englishName(artists.englishName()) | ||
.image(artists.image()) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...show-api/src/main/java/com/example/show/controller/dto/response/ShowGenreApiResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.example.show.controller.dto.response; | ||
|
||
import com.example.show.service.dto.response.ShowGenreServiceResponse; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.UUID; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record ShowGenreApiResponse( | ||
|
||
@Schema(description = "장르 ID") | ||
UUID id, | ||
|
||
@Schema(description = "장르 이름") | ||
String name | ||
) { | ||
|
||
public static ShowGenreApiResponse from(ShowGenreServiceResponse genre) { | ||
return ShowGenreApiResponse.builder() | ||
.id(genre.id()) | ||
.name(genre.name()) | ||
.build(); | ||
} | ||
} |
Oops, something went wrong.