From 89f1ec9ad7cb2cae1708a7f8a9e3ae7b697d6034 Mon Sep 17 00:00:00 2001 From: iseunghag Date: Mon, 9 Oct 2023 01:34:12 +0900 Subject: [PATCH] =?UTF-8?q?[PDS-92]=20feat:=EA=B4=80=EB=A6=AC=EC=9E=90=20?= =?UTF-8?q?=ED=9A=8C=EC=9D=98=EC=8B=A4=20=EC=98=88=EC=95=BD=20=EB=B0=98?= =?UTF-8?q?=EB=A0=A4=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../booking/controller/BookingAdminController.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/com/example/pladialmserver/booking/controller/BookingAdminController.java b/src/main/java/com/example/pladialmserver/booking/controller/BookingAdminController.java index 69897950..8e898061 100644 --- a/src/main/java/com/example/pladialmserver/booking/controller/BookingAdminController.java +++ b/src/main/java/com/example/pladialmserver/booking/controller/BookingAdminController.java @@ -41,6 +41,19 @@ public ResponseCustom> getBookingOffices( /** * 관리자 회의실 예약 반려 */ + @Operation(summary = "관리자 회의실 예약 반려", description = "관리자 회의실 예약을 반려한다.") + @ApiResponses(value = { + @ApiResponse(responseCode = "200", description = "(S0001)회의실 에약 취소 성공", content = @Content(schema = @Schema(implementation = ResponseCustom.class))), + @ApiResponse(responseCode = "403", description = "(G0002)접근권한이 없습니다.", content = @Content(schema = @Schema(implementation = ResponseCustom.class))), + @ApiResponse(responseCode = "404", description = "(B0006)존재하지 않는 예약입니다. (U0001)사용자를 찾을 수 없습니다.", content = @Content(schema = @Schema(implementation = ResponseCustom.class))), + @ApiResponse(responseCode = "409", description = "(B0007)이미 취소된 예약입니다. (B0008)이미 사용이 완료된 예약입니다.", content = @Content(schema = @Schema(implementation = ResponseCustom.class))) + }) + @PatchMapping("/offices/{officeBookingId}/cancel") + public ResponseCustom cancelBookingOffice( + @Parameter(description = "(Long) 회의실 예약 Id", example = "1") @PathVariable(name = "officeBookingId") Long officeBookingId) { + bookingService.cancelBookingOffice(officeBookingId); + return ResponseCustom.OK(); + } /**