refactor: 다른 서비스에서 사용하는 일정 조회 DTO에 상태 반환 추가

This commit is contained in:
이상진 2025-09-09 09:05:59 +09:00
parent ed618e1699
commit 36e846ded3

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
)