Skip to content

Commit

Permalink
feat: 티켓팅 API 대기열 AOP 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hseong3243 committed Aug 28, 2024
1 parent 31e6be1 commit cfffb70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
public class SeatController {
private final SeatService seatService;

@Waiting
@GetMapping("/performances/{performanceId}/zones/{zoneId}/seats")
public ResponseEntity<ItemResult<SeatElement>> getSeats(@PathVariable("zoneId") long zoneId) {
ItemResult<SeatElement> seats = seatService.getSeats(zoneId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.thirdparty.ticketing.domain.ticket.dto.response.TicketElement;
import com.thirdparty.ticketing.domain.ticket.service.ReservationService;
import com.thirdparty.ticketing.domain.ticket.service.TicketService;
import com.thirdparty.ticketing.domain.waitingsystem.Waiting;

import lombok.RequiredArgsConstructor;

Expand All @@ -41,6 +42,7 @@ public ResponseEntity<Void> releaseSeat(
return ResponseEntity.ok().build();
}

@Waiting
@PostMapping("/seats/select")
public ResponseEntity<Void> selectSeat(
@LoginMember String memberEmail,
Expand All @@ -49,6 +51,7 @@ public ResponseEntity<Void> selectSeat(
return ResponseEntity.ok().build();
}

@Waiting
@PostMapping("/tickets")
public ResponseEntity<Void> reservationTicket(
@LoginMember String memberEmail,
Expand Down

0 comments on commit cfffb70

Please sign in to comment.