add: TicketListDTO

This commit is contained in:
손창현
2022-07-15 03:49:10 +09:00
parent 68ad0ce910
commit 72e6f0628f
2 changed files with 22 additions and 0 deletions

View File

@@ -23,6 +23,11 @@ public class TicketServiceImpl implements TicketService {
private final TicketRepository ticketRepository;
@Override
public TicketListDTO getTickets(Long movieTimeId) {
}
@Override
public TicketDetailsDTO findTicketsByPaymentId(@NotNull Long paymentId) {
List<TicketDetailDTO> ticketDetails = ticketRepository.findTicketFetchJoinByPaymentId(paymentId)

View File

@@ -0,0 +1,17 @@
package com.ticketing.server.movie.service.dto;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public class TicketListDTO {
private final List<TicketDTO> ticketDtos;
public TicketListResponse toResponse() {
return new TicketListResponse(ticketDtos);
}
}