-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π :: Api-v0.0.8-2
- Loading branch information
Showing
21 changed files
with
188 additions
and
57 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
20 changes: 20 additions & 0 deletions
20
...i/src/main/java/band/gosrock/api/ticketItem/dto/response/GetEventTicketItemsResponse.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,20 @@ | ||
package band.gosrock.api.ticketItem.dto.response; | ||
|
||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
public class GetEventTicketItemsResponse { | ||
|
||
@Schema(description = "ν°μΌμν 리μ€νΈ") | ||
private List<TicketItemResponse> ticketItems; | ||
|
||
public static GetEventTicketItemsResponse from(List<TicketItemResponse> ticketItems) { | ||
|
||
return GetEventTicketItemsResponse.builder().ticketItems(ticketItems).build(); | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
...i/src/main/java/band/gosrock/api/ticketItem/dto/response/GetTicketItemOptionResponse.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
.../src/main/java/band/gosrock/api/ticketItem/dto/response/GetTicketItemOptionsResponse.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,20 @@ | ||
package band.gosrock.api.ticketItem.dto.response; | ||
|
||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
public class GetTicketItemOptionsResponse { | ||
|
||
@Schema(description = "μ΅μ κ·Έλ£Ή 리μ€νΈ") | ||
private List<OptionGroupResponse> optionGroups; | ||
|
||
public static GetTicketItemOptionsResponse from(List<OptionGroupResponse> optionGroups) { | ||
|
||
return GetTicketItemOptionsResponse.builder().optionGroups(optionGroups).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
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
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
19 changes: 19 additions & 0 deletions
19
...ong-Api/src/main/java/band/gosrock/api/ticketItem/service/GetEventTicketItemsUseCase.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,19 @@ | ||
package band.gosrock.api.ticketItem.service; | ||
|
||
|
||
import band.gosrock.api.ticketItem.dto.response.GetEventTicketItemsResponse; | ||
import band.gosrock.api.ticketItem.mapper.TicketItemMapper; | ||
import band.gosrock.common.annotation.UseCase; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@UseCase | ||
@RequiredArgsConstructor | ||
public class GetEventTicketItemsUseCase { | ||
|
||
private final TicketItemMapper ticketItemMapper; | ||
|
||
public GetEventTicketItemsResponse execute(Long eventId) { | ||
|
||
return ticketItemMapper.toGetEventTicketItemsResponse(eventId); | ||
} | ||
} |
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
Oops, something went wrong.