Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] : 좌석 선택 API 구현 #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

chaaehyun
Copy link
Contributor

⭐️ 관련이슈

#17

⭐️ 구현사항

🔧 좌석 선택 API 구현

🍃 Controller 에 POST 추가

@PostMapping("/seats")
public ResponseEntity<APISuccessResponse<SeatSelectResponse>> selectSeat(
@RequestHeader final Long userId,
@RequestBody final SeatSelectRequest seatSelectRequest
){
return APISuccessResponse.of(HttpStatus.OK,seatService.selectSeat(userId, seatSelectRequest));
}


🍃 request, response 노션에 맞게 작성했습니다!


🍃 isAuto() == true일 땐, 입력 받은 seatId, price로 티켓 생성

🍃 isAuto() == false일 땐, 랜덤 seatId과 입력 받은 price로 티켓 생성

@chaaehyun chaaehyun self-assigned this Nov 25, 2024
@chaaehyun chaaehyun added the ✨ feature 기능 추가 label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature 기능 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant