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

[fix] #164 - 입금여부수정 api 경로 수정 및 dev db 초기화 #165

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ public ResponseEntity<SuccessResponse<TicketRetrieveResponse>> getTickets(
}

@Operation(summary = "예매자 입금여부 수정 및 웹발신 API", description = "메이커가 자신의 공연에 대한 예매자의 입금여부 정보를 수정한 뒤 예매확정 웹발신을 보내는 PUT API입니다.")
@PutMapping("/{performanceId}") // 이 부분 body로 performanceId를 넘기기에 수정 필요!!
@PutMapping
public ResponseEntity<SuccessResponse<Void>> updateTickets(
@CurrentMember Long memberId,
@PathVariable Long performanceId,
@RequestBody TicketUpdateRequest request) {
ticketService.updateTickets(memberId, request);
return ResponseEntity.ok(SuccessResponse.of(BookingSuccessCode.TICKET_UPDATE_SUCCESS, null));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SuccessResponse 클래스에 저희가 만든 정적팩토리메서드가 of와 from이 있습니다.
from은 data를 null로 주도록 설정해 놓았으니, from 메서드를 사용해주시면 더욱 코드가 깔끔해 질 것 같습니다!

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spring:

jpa:
hibernate:
ddl-auto: update
ddl-auto: create
show-sql: true
properties:
hibernate:
Expand Down
Loading