diff --git a/src/main/kotlin/com/wafflestudio/csereal/core/conference/dto/ConferenceDto.kt b/src/main/kotlin/com/wafflestudio/csereal/core/conference/dto/ConferenceDto.kt index 03178adc..cd8a18c7 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/core/conference/dto/ConferenceDto.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/core/conference/dto/ConferenceDto.kt @@ -3,16 +3,18 @@ package com.wafflestudio.csereal.core.conference.dto import com.wafflestudio.csereal.core.conference.database.ConferenceEntity data class ConferenceDto( + val id: Long, val code: String, val abbreviation: String, - val name: String + val name: String, ) { companion object { fun of(conferenceEntity: ConferenceEntity): ConferenceDto { return ConferenceDto( + id = conferenceEntity.id, code = conferenceEntity.code, abbreviation = conferenceEntity.abbreviation, - name = conferenceEntity.name + name = conferenceEntity.name, ) } }