Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonyworld authored Jul 17, 2024
2 parents ff1618c + 3e0c316 commit 5cfd1e9
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class PerformanceController {
private final PerformanceService performanceService;
private final PerformanceManagementService performanceManagementService;
private final PerformanceUpdateService performanceUpdateService;

@Operation(summary = "공연 생성 API", description = "공연을 생성하는 POST API입니다.")
@PostMapping
public ResponseEntity<SuccessResponse<PerformanceResponse>> createPerformance(
Expand All @@ -45,6 +45,15 @@ public ResponseEntity<SuccessResponse<PerformanceResponse>> createPerformance(
return ResponseEntity.status(HttpStatus.CREATED)
.body(SuccessResponse.of(PerformanceSuccessCode.PERFORMANCE_CREATE_SUCCESS, response));
}
@Operation(summary = "공연 정보 수정 API", description = "공연 정보를 수정하는 PUT API입니다.")
@PutMapping
public ResponseEntity<SuccessResponse<PerformanceUpdateResponse>> updatePerformance(
@CurrentMember Long memberId,
@RequestBody PerformanceUpdateRequest performanceUpdateRequest) {
PerformanceUpdateResponse response = performanceUpdateService.updatePerformance(memberId, performanceUpdateRequest);
return ResponseEntity.status(HttpStatus.OK)
.body(SuccessResponse.of(PerformanceSuccessCode.PERFORMANCE_UPDATE_SUCCESS, response));
}

@Operation(summary = "공연 정보 수정 API", description = "공연 정보를 수정하는 PUT API입니다.")
@PutMapping
Expand Down

0 comments on commit 5cfd1e9

Please sign in to comment.