generated from pricelees/issue-pr-template
[#41] 예약 스키마 재정의 #42
@ -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
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user