Skip to content

Commit

Permalink
Boolti-298 feat: createdAt, modifiedAt 필드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
mangbaam committed Oct 1, 2024
1 parent 50de6f2 commit 0dec2f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.nexters.boolti.data.network.response

import com.nexters.boolti.data.util.toLocalDateTime
import com.nexters.boolti.domain.model.Cast
import com.nexters.boolti.domain.model.CastTeams
import kotlinx.serialization.Serializable
Expand All @@ -12,15 +11,11 @@ data class CastTeamsDto(
val id: String = "",
val name: String = "",
val members: List<CastDto> = emptyList(),
val createdAt: String = LocalDateTime.MIN.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME),
val modifiedAt: String? = null,
) {
fun toDomain(): CastTeams = CastTeams(
id = id,
teamName = name,
members = members.map(CastDto::toDomain),
createdAt = createdAt.toLocalDateTime(),
modifiedAt = modifiedAt?.toLocalDateTime(),
)

@Serializable
Expand All @@ -39,8 +34,6 @@ data class CastTeamsDto(
photo = userImgPath,
nickname = userNickname,
roleName = roleName,
createdAt = createdAt.toLocalDateTime(),
modifiedAt = modifiedAt?.toLocalDateTime(),
)
}
}
6 changes: 0 additions & 6 deletions domain/src/main/java/com/nexters/boolti/domain/model/Cast.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package com.nexters.boolti.domain.model

import java.time.LocalDateTime

data class CastTeams(
val id: String = "",
val teamName: String = "",
val members: List<Cast> = emptyList(),
val createdAt: LocalDateTime = LocalDateTime.MIN,
val modifiedAt: LocalDateTime? = null,
)

data class Cast(
Expand All @@ -16,6 +12,4 @@ data class Cast(
val photo: String? = null,
val nickname: String = "",
val roleName: String = "",
val createdAt: LocalDateTime = LocalDateTime.MIN,
val modifiedAt: LocalDateTime? = null,
)

0 comments on commit 0dec2f4

Please sign in to comment.