Skip to content

Commit 58b7170

Browse files
committed
fix: ContentItemDto non-nullable로 변경
1 parent 48bfd5f commit 58b7170

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

app/src/main/java/com/flint/data/dto/response/ContentSearchResponseDto.kt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ data class ContentSearchResponseDto(
88
@SerialName("data") val contents: List<ContentItemDto>,
99
@SerialName("meta") val meta: PageMetaDto,
1010
)
11-
12-
// TODO: null 처리를 어떻게? 어떤거가 null가능인지
1311
@Serializable
1412
data class ContentItemDto(
15-
@SerialName("contentId") val contentId: Long?,
16-
@SerialName("title") val title: String?,
17-
@SerialName("author") val author: String?,
18-
@SerialName("posterUrl") val posterUrl: String?,
19-
@SerialName("year") val year: Int?,
13+
@SerialName("contentId") val contentId: Long,
14+
@SerialName("title") val title: String,
15+
@SerialName("author") val author: String,
16+
@SerialName("posterUrl") val posterUrl: String,
17+
@SerialName("year") val year: Int,
2018
)
2119

2220
@Serializable

0 commit comments

Comments
 (0)