fix: 커뮤니티 댓글 조회

- 결과값에 isSecret(비밀 댓글 여부) 추가
This commit is contained in:
Klaus 2025-06-13 16:51:10 +09:00
parent 4ffa9363a8
commit f13c221fd6
2 changed files with 4 additions and 1 deletions

View File

@ -81,6 +81,7 @@ class CreatorCommunityCommentQueryRepositoryImpl(
creatorCommunityComment.member.nickname, creatorCommunityComment.member.nickname,
creatorCommunityComment.member.profileImage.prepend("/").prepend(imageHost), creatorCommunityComment.member.profileImage.prepend("/").prepend(imageHost),
creatorCommunityComment.comment, creatorCommunityComment.comment,
creatorCommunityComment.isSecret,
formattedDate, formattedDate,
Expressions.constant(0) Expressions.constant(0)
) )
@ -156,8 +157,9 @@ class CreatorCommunityCommentQueryRepositoryImpl(
creatorCommunityComment.id, creatorCommunityComment.id,
creatorCommunityComment.member.id, creatorCommunityComment.member.id,
creatorCommunityComment.member.nickname, creatorCommunityComment.member.nickname,
creatorCommunityComment.member.profileImage.prepend(imageHost), creatorCommunityComment.member.profileImage.prepend("/").prepend(imageHost),
creatorCommunityComment.comment, creatorCommunityComment.comment,
creatorCommunityComment.isSecret,
formattedDate, formattedDate,
Expressions.constant(0) Expressions.constant(0)
) )

View File

@ -13,6 +13,7 @@ data class GetCommunityPostCommentListItem @QueryProjection constructor(
val nickname: String, val nickname: String,
val profileUrl: String, val profileUrl: String,
val comment: String, val comment: String,
val isSecret: Boolean,
val date: String, val date: String,
var replyCount: Int var replyCount: Int
) )