Compare commits
3 Commits
c5fa260a0d
...
62ec994069
| Author | SHA1 | Date | |
|---|---|---|---|
| 62ec994069 | |||
| 8ec6d50dd8 | |||
| ddd46d585e |
@@ -21,7 +21,8 @@ data class CharacterCommentResponse(
|
|||||||
val memberNickname: String,
|
val memberNickname: String,
|
||||||
val createdAt: Long,
|
val createdAt: Long,
|
||||||
val replyCount: Int,
|
val replyCount: Int,
|
||||||
val comment: String
|
val comment: String,
|
||||||
|
val languageCode: String?
|
||||||
)
|
)
|
||||||
|
|
||||||
// 답글 Response 단건(목록 원소)
|
// 답글 Response 단건(목록 원소)
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ class CharacterCommentService(
|
|||||||
memberNickname = member.nickname,
|
memberNickname = member.nickname,
|
||||||
createdAt = toEpochMilli(entity.createdAt),
|
createdAt = toEpochMilli(entity.createdAt),
|
||||||
replyCount = replyCountOverride ?: commentRepository.countByParent_IdAndIsActiveTrue(entity.id!!),
|
replyCount = replyCountOverride ?: commentRepository.countByParent_IdAndIsActiveTrue(entity.id!!),
|
||||||
comment = entity.comment
|
comment = entity.comment,
|
||||||
|
languageCode = entity.languageCode
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ class AudioContentCommentQueryRepositoryImpl(
|
|||||||
audioContentComment.member.nickname,
|
audioContentComment.member.nickname,
|
||||||
audioContentComment.member.profileImage.prepend("/").prepend(cloudFrontHost),
|
audioContentComment.member.profileImage.prepend("/").prepend(cloudFrontHost),
|
||||||
audioContentComment.comment,
|
audioContentComment.comment,
|
||||||
|
audioContentComment.languageCode,
|
||||||
audioContentComment.isSecret,
|
audioContentComment.isSecret,
|
||||||
audioContentComment.donationCan.coalesce(0),
|
audioContentComment.donationCan.coalesce(0),
|
||||||
formattedDate,
|
formattedDate,
|
||||||
@@ -166,6 +167,7 @@ class AudioContentCommentQueryRepositoryImpl(
|
|||||||
audioContentComment.member.nickname,
|
audioContentComment.member.nickname,
|
||||||
audioContentComment.member.profileImage.prepend("/").prepend(cloudFrontHost),
|
audioContentComment.member.profileImage.prepend("/").prepend(cloudFrontHost),
|
||||||
audioContentComment.comment,
|
audioContentComment.comment,
|
||||||
|
audioContentComment.languageCode,
|
||||||
audioContentComment.isSecret,
|
audioContentComment.isSecret,
|
||||||
audioContentComment.donationCan.coalesce(0),
|
audioContentComment.donationCan.coalesce(0),
|
||||||
formattedDate,
|
formattedDate,
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ data class GetAudioContentCommentListItem @QueryProjection constructor(
|
|||||||
val nickname: String,
|
val nickname: String,
|
||||||
val profileUrl: String,
|
val profileUrl: String,
|
||||||
val comment: String,
|
val comment: String,
|
||||||
|
val languageCode: String?,
|
||||||
val isSecret: Boolean,
|
val isSecret: Boolean,
|
||||||
val donationCan: Int,
|
val donationCan: Int,
|
||||||
val date: String,
|
val date: String,
|
||||||
|
|||||||
@@ -488,6 +488,7 @@ class ExplorerQueryRepository(
|
|||||||
"$cloudFrontHost/profile/default-profile.png"
|
"$cloudFrontHost/profile/default-profile.png"
|
||||||
},
|
},
|
||||||
content = it.cheers,
|
content = it.cheers,
|
||||||
|
languageCode = it.languageCode,
|
||||||
date = date.format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")),
|
date = date.format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")),
|
||||||
replyList = it.children.asSequence()
|
replyList = it.children.asSequence()
|
||||||
.map { cheers ->
|
.map { cheers ->
|
||||||
@@ -505,6 +506,7 @@ class ExplorerQueryRepository(
|
|||||||
"$cloudFrontHost/profile/default-profile.png"
|
"$cloudFrontHost/profile/default-profile.png"
|
||||||
},
|
},
|
||||||
content = cheers.cheers,
|
content = cheers.cheers,
|
||||||
|
languageCode = cheers.languageCode,
|
||||||
date = replyDate.format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")),
|
date = replyDate.format(DateTimeFormatter.ofPattern("yyyy.MM.dd E hh:mm a")),
|
||||||
replyList = listOf()
|
replyList = listOf()
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ data class GetCheersResponseItem(
|
|||||||
val nickname: String,
|
val nickname: String,
|
||||||
val profileUrl: String,
|
val profileUrl: String,
|
||||||
val content: String,
|
val content: String,
|
||||||
|
val languageCode: String?,
|
||||||
val date: String,
|
val date: String,
|
||||||
val replyList: List<GetCheersResponseItem>
|
val replyList: List<GetCheersResponseItem>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user