[#41] 예약 스키마 재정의 #42

Merged
pricelees merged 41 commits from refactor/#41 into main 2025-09-09 00:43:39 +00:00
Showing only changes of commit 36e846ded3 - Show all commits

View File

@ -10,8 +10,6 @@ data class AvailableThemeIdListResponse(
val themeIds: List<Long>
)
fun List<ScheduleEntity>.toThemeIdListResponse() = AvailableThemeIdListResponse(this.map { it.themeId })
data class ScheduleRetrieveResponse(
val id: Long,
val time: LocalTime,
@ -70,11 +68,13 @@ fun ScheduleEntity.toDetailRetrieveResponse(createdBy: String, updatedBy: String
data class ScheduleSummaryResponse(
val date: LocalDate,
val time: LocalTime,
val themeId: Long
val themeId: Long,
val status: ScheduleStatus
)
fun ScheduleEntity.toSummaryResponse() = ScheduleSummaryResponse(
date = this.date,
time = this.time,
themeId = this.themeId
themeId = this.themeId,
status = this.status
)