Skip to content

Commit

Permalink
Merge pull request #60 from PLADI-ALM/feat/PDS-89-OfficeBookingDetail
Browse files Browse the repository at this point in the history
[PDS-89/feat] 관리자 회의실 상세 내역 조회 API
  • Loading branch information
sojungpp authored Oct 8, 2023
2 parents 93bd2b1 + 331697f commit 05d44cb
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.example.pladialmserver.booking.controller;

import com.example.pladialmserver.booking.dto.response.AdminBookingRes;
import com.example.pladialmserver.booking.dto.response.OfficeBookingDetailRes;
import com.example.pladialmserver.booking.service.BookingService;
import com.example.pladialmserver.global.response.ResponseCustom;
import io.swagger.annotations.Api;
Expand Down Expand Up @@ -43,10 +44,22 @@ public ResponseCustom<Page<AdminBookingRes>> getBookingOffices(
*/



/**
* 관리자 회의실 상세 내역을 조회한다.
*/

@Operation(summary = "관리자 회의실 예약 상세 조회", description = "관리자 회의실 예약 내역을 상세 조회한다.")
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "(S0001)회의실 예약 개별 조회 성공"),
@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)))
})
@GetMapping("/offices/{officeBookingId}")
public ResponseCustom<OfficeBookingDetailRes> getOfficeBookingDetail(@Parameter(description = "(Long) 회의실 예약 Id", example = "1") @PathVariable(name="officeBookingId") Long officeBookingId){
// TODO 유저 ID 받아오는 로직 추가
Long userId = 1L;
return ResponseCustom.OK(bookingService.getOfficeBookingDetail(userId, officeBookingId));
}


/**
Expand Down

0 comments on commit 05d44cb

Please sign in to comment.