diff --git a/adapters/in-web/src/main/kotlin/com/pokit/content/dto/response/ContentResponse.kt b/adapters/in-web/src/main/kotlin/com/pokit/content/dto/response/ContentResponse.kt index adbbd9f..381f690 100644 --- a/adapters/in-web/src/main/kotlin/com/pokit/content/dto/response/ContentResponse.kt +++ b/adapters/in-web/src/main/kotlin/com/pokit/content/dto/response/ContentResponse.kt @@ -10,6 +10,7 @@ data class ContentResponse( val data: String, val title: String, val memo: String, + val alertYn: String, val createdAt: String, val favorites: Boolean = false, val keyword: String, @@ -25,6 +26,7 @@ fun ContentResult.toResponse(): ContentResponse { data = this.data, title = this.title, memo = this.memo, + alertYn = this.alertYn, createdAt = this.createdAt.format(formatter), favorites = this.favorites, keyword = this.keyword, diff --git a/domain/src/main/kotlin/com/pokit/content/dto/response/ContentResult.kt b/domain/src/main/kotlin/com/pokit/content/dto/response/ContentResult.kt index a64fba6..38966a2 100644 --- a/domain/src/main/kotlin/com/pokit/content/dto/response/ContentResult.kt +++ b/domain/src/main/kotlin/com/pokit/content/dto/response/ContentResult.kt @@ -12,6 +12,7 @@ data class ContentResult( val data: String, val title: String, val memo: String, + val alertYn: String, val createdAt: LocalDateTime, val favorites: Boolean = false, val keyword: String, @@ -25,6 +26,7 @@ fun Content.toGetContentResult(favorites: Boolean, category: Category, user: Use data = this.data, title = this.title, memo = this.memo, + alertYn = this.alertYn, createdAt = this.createdAt, favorites = favorites, keyword = category.keyword.kor,