Skip to content

Commit

Permalink
feat : 컨텐츠 추가 api 응답필드 alertYn 추가 (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlswns2480 authored Jan 9, 2025
1 parent 325cb7a commit 45621f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 45621f8

Please sign in to comment.