[#44] 매장 기능 도입 #45

Merged
pricelees merged 116 commits from feat/#44 into main 2025-09-20 03:15:06 +00:00
Showing only changes of commit 5b4df7bef6 - Show all commits

View File

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