Skip to content

Commit

Permalink
Feat: Add id in conferencedto.
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW committed Sep 11, 2023
1 parent d241f59 commit 569ae6f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}
}
Expand Down

0 comments on commit 569ae6f

Please sign in to comment.