From 1c700130c44b1b4e603db8c3f897d25a8b5f1e08 Mon Sep 17 00:00:00 2001 From: pricelees Date: Mon, 6 Oct 2025 16:40:11 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20ScheduleValidator=EC=9D=98=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EB=A7=A4=EC=8B=9C=EC=A7=80=EC=97=90?= =?UTF-8?q?=EC=84=9C=EC=9D=98=20=ED=81=B4=EB=9E=98=EC=8A=A4=EB=AA=85=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roomescape/schedule/business/ScheduleValidator.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/src/main/kotlin/com/sangdol/roomescape/schedule/business/ScheduleValidator.kt b/service/src/main/kotlin/com/sangdol/roomescape/schedule/business/ScheduleValidator.kt index a9387348..1ce56192 100644 --- a/service/src/main/kotlin/com/sangdol/roomescape/schedule/business/ScheduleValidator.kt +++ b/service/src/main/kotlin/com/sangdol/roomescape/schedule/business/ScheduleValidator.kt @@ -26,7 +26,7 @@ class ScheduleValidator( val status: ScheduleStatus = schedule.status if (status !in listOf(ScheduleStatus.AVAILABLE, ScheduleStatus.BLOCKED)) { - log.info { "[ScheduleValidator.validateCanDelete] 삭제 실패: id=${schedule.id} / status=${status}" } + log.info { "[validateCanDelete] 삭제 실패: id=${schedule.id} / status=${status}" } throw ScheduleException(ScheduleErrorCode.SCHEDULE_IN_USE) } } @@ -51,7 +51,7 @@ class ScheduleValidator( private fun validateAlreadyExists(storeId: Long, date: LocalDate, themeId: Long, time: LocalTime) { if (scheduleRepository.existsDuplicate(storeId, date, themeId, time)) { log.info { - "[ScheduleValidator.validateAlreadyExists] 동일한 날짜, 테마, 시간 존재로 인한 실패: date=${date} / themeId=${themeId} / time=${time}" + "[validateAlreadyExists] 동일한 날짜, 테마, 시간 존재로 인한 실패: date=${date} / themeId=${themeId} / time=${time}" } throw ScheduleException(ScheduleErrorCode.SCHEDULE_ALREADY_EXISTS) } @@ -63,7 +63,7 @@ class ScheduleValidator( if (inputDateTime.isBefore(now)) { log.info { - "[ScheduleValidator.validateDateTime] 이전 시간 선택으로 인한 실패: date=${date} / time=${time}" + "[validateDateTime] 이전 시간 선택으로 인한 실패: date=${date} / time=${time}" } throw ScheduleException(ScheduleErrorCode.PAST_DATE_TIME) } @@ -73,7 +73,7 @@ class ScheduleValidator( scheduleRepository.findStoreSchedulesWithThemeByDate(storeId, date, themeId) .firstOrNull { it.containsTime(time) } ?.let { - log.info { "[ScheduleValidator.validateTimeNotConflict] 시간이 겹치는 일정 존재: conflictSchedule(Id=${it.id}, time=${it.time}~${it.getEndAt()})" } + log.info { "[validateTimeNotConflict] 시간이 겹치는 일정 존재: conflictSchedule(Id=${it.id}, time=${it.time}~${it.getEndAt()})" } throw ScheduleException(ScheduleErrorCode.SCHEDULE_TIME_CONFLICT) } }