generated from pricelees/issue-pr-template
refactor: Pending 예약시 일정 검증을 위한 ReservationService에서 가져오는 ScheduleSummaryResponse에 holdExpiredAt 필드 추가
This commit is contained in:
parent
5bcba12a61
commit
8378e10192
@ -4,6 +4,7 @@ import com.sangdol.roomescape.schedule.business.domain.ScheduleOverview
|
||||
import com.sangdol.roomescape.schedule.infrastructure.persistence.ScheduleEntity
|
||||
import com.sangdol.roomescape.schedule.infrastructure.persistence.ScheduleStatus
|
||||
import com.sangdol.roomescape.theme.infrastructure.persistence.Difficulty
|
||||
import java.time.Instant
|
||||
import java.time.LocalDate
|
||||
import java.time.LocalTime
|
||||
|
||||
@ -45,14 +46,16 @@ data class ScheduleSummaryResponse(
|
||||
val date: LocalDate,
|
||||
val time: LocalTime,
|
||||
val themeId: Long,
|
||||
val status: ScheduleStatus
|
||||
val status: ScheduleStatus,
|
||||
val holdExpiredAt: Instant? = null
|
||||
)
|
||||
|
||||
fun ScheduleEntity.toSummaryResponse() = ScheduleSummaryResponse(
|
||||
date = this.date,
|
||||
time = this.time,
|
||||
themeId = this.themeId,
|
||||
status = this.status
|
||||
status = this.status,
|
||||
holdExpiredAt = this.holdExpiredAt
|
||||
)
|
||||
|
||||
data class ScheduleOverviewResponse(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user