From 5bcba12a612bfcf438da02787944cb0732e4f576 Mon Sep 17 00:00:00 2001 From: pricelees Date: Mon, 6 Oct 2025 16:52:48 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20ReservationValidator=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EB=A7=A4=EC=8B=9C=EC=A7=80=EC=97=90=EC=84=9C?= =?UTF-8?q?=EC=9D=98=20=ED=81=B4=EB=9E=98=EC=8A=A4=EB=AA=85=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roomescape/reservation/business/ReservationValidator.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/src/main/kotlin/com/sangdol/roomescape/reservation/business/ReservationValidator.kt b/service/src/main/kotlin/com/sangdol/roomescape/reservation/business/ReservationValidator.kt index 84fea83b..9eb230aa 100644 --- a/service/src/main/kotlin/com/sangdol/roomescape/reservation/business/ReservationValidator.kt +++ b/service/src/main/kotlin/com/sangdol/roomescape/reservation/business/ReservationValidator.kt @@ -21,17 +21,17 @@ class ReservationValidator { request: PendingReservationCreateRequest ) { if (schedule.status != ScheduleStatus.HOLD) { - log.warn { "[ReservationValidator.validateCanCreate] ${schedule.status}로의 일정 상태 변경에 따른 실패" } + log.warn { "[validateCanCreate] ${schedule.status}로의 일정 상태 변경에 따른 실패" } throw ReservationException(ReservationErrorCode.EXPIRED_HELD_SCHEDULE) } if (theme.minParticipants > request.participantCount) { - log.info { "[ReservationValidator.validateCanCreate] 최소 인원 미달로 인한 예약 실패: minParticipants=${theme.minParticipants}, participantCount=${request.participantCount}" } + log.info { "[validateCanCreate] 최소 인원 미달로 인한 예약 실패: minParticipants=${theme.minParticipants}, participantCount=${request.participantCount}" } throw ReservationException(ReservationErrorCode.INVALID_PARTICIPANT_COUNT) } if (theme.maxParticipants < request.participantCount) { - log.info { "[ReservationValidator.validateCanCreate] 최대 인원 초과로 인한 예약 실패: minParticipants=${theme.minParticipants}, participantCount=${request.participantCount}" } + log.info { "[validateCanCreate] 최대 인원 초과로 인한 예약 실패: minParticipants=${theme.minParticipants}, participantCount=${request.participantCount}" } throw ReservationException(ReservationErrorCode.INVALID_PARTICIPANT_COUNT) } }