refactor: DTO 명명 수정 및 테스트 반영

This commit is contained in:
이상진 2025-09-15 12:09:05 +09:00
parent 8205e83b4a
commit 5b4df7bef6

View File

@ -8,7 +8,6 @@ import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional import org.springframework.transaction.annotation.Transactional
import roomescape.common.config.next import roomescape.common.config.next
import roomescape.common.dto.CurrentUserContext import roomescape.common.dto.CurrentUserContext
import roomescape.common.dto.PrincipalType
import roomescape.common.util.DateUtils import roomescape.common.util.DateUtils
import roomescape.user.business.UserService import roomescape.user.business.UserService
import roomescape.user.web.UserContactResponse import roomescape.user.web.UserContactResponse
@ -101,7 +100,7 @@ class ReservationService(
return ReservationSummaryListResponse(reservations.map { return ReservationSummaryListResponse(reservations.map {
val schedule: ScheduleSummaryResponse = scheduleService.findSummaryById(it.scheduleId) val schedule: ScheduleSummaryResponse = scheduleService.findSummaryById(it.scheduleId)
val theme: ThemeInfoResponse = themeService.findSummaryById(schedule.themeId) val theme: ThemeInfoResponse = themeService.findInfoById(schedule.themeId)
ReservationSummaryResponse( ReservationSummaryResponse(
id = it.id, id = it.id,
@ -183,7 +182,7 @@ class ReservationService(
private fun validateCanCreate(request: PendingReservationCreateRequest) { private fun validateCanCreate(request: PendingReservationCreateRequest) {
val schedule = scheduleService.findSummaryById(request.scheduleId) val schedule = scheduleService.findSummaryById(request.scheduleId)
val theme = themeService.findSummaryById(schedule.themeId) val theme = themeService.findInfoById(schedule.themeId)
reservationValidator.validateCanCreate(schedule, theme, request) reservationValidator.validateCanCreate(schedule, theme, request)
} }