-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 오탈자 수정 * rename: 폴더 구조 변경 * feat: 즐겨찾기 리마인드 api * fix: 필요없는 코드 제거 * fix: domain 임시 모킹 * rename: 폴더구조 변경 * refactor: 주석제거 (#53) * feat: 페이징 처리 * feat: response 칼럼추가 * feat: response 칼럼 추가 * feat: domain 의존 분리 * feat: 읽지 않음 컨텐츠 조회
- Loading branch information
Showing
9 changed files
with
108 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
adapters/in-web/src/main/kotlin/com/pokit/content/dto/response/ContentsResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.pokit.content.dto.response | ||
|
||
import java.time.format.DateTimeFormatter | ||
|
||
data class ContentsResponse( | ||
val contentId: Long, | ||
val categoryId: Long, | ||
val categoryName: String, | ||
val data: String, | ||
val domain: String, | ||
val title: String, | ||
val memo: String, | ||
val alertYn: String, | ||
val createdAt: String, | ||
val isRead: Boolean, | ||
val thumbNail: String, | ||
) | ||
|
||
fun ContentsResult.toResponse(): ContentsResponse { | ||
val formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd") | ||
|
||
return ContentsResponse( | ||
contentId = this.contentId, | ||
categoryId = this.categoryId, | ||
categoryName = this.categoryName, | ||
data = this.data, | ||
domain = this.domain, | ||
title = this.title, | ||
memo = this.memo, | ||
alertYn = this.alertYn, | ||
createdAt = this.createdAt.format(formatter), | ||
isRead = this.isRead, | ||
thumbNail = this.thumbNail | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters