From 741f71d8a981d964c3c513a3213d339383aa797d Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 7 Jul 2026 17:56:02 +0900 Subject: [PATCH] =?UTF-8?q?feat(community):=20=EB=8C=93=EA=B8=80=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1=EC=9E=90=20=EC=8B=9D=EB=B3=84=EC=9E=90?= =?UTF-8?q?=EB=A5=BC=20=EC=A1=B0=ED=9A=8C=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/CreatorChannelCommunityQueryService.kt | 2 ++ .../community/domain/CreatorChannelCommunityPostDetail.kt | 2 ++ .../application/CreatorChannelCommunityQueryServiceTest.kt | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/application/CreatorChannelCommunityQueryService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/application/CreatorChannelCommunityQueryService.kt index 551c7350..ed2dce0e 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/application/CreatorChannelCommunityQueryService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/application/CreatorChannelCommunityQueryService.kt @@ -253,6 +253,7 @@ class CreatorChannelCommunityQueryService( ): CreatorChannelCommunityComment { return CreatorChannelCommunityComment( commentId = commentId, + writerId = writerId, writerProfileImageUrl = writerProfilePath.toCdnUrl(cloudFrontHost) ?: defaultProfileImageUrl(), writerNickname = writerNickname.removeDeletedNicknamePrefix(), content = content, @@ -264,6 +265,7 @@ class CreatorChannelCommunityQueryService( private fun CreatorChannelCommunityCommentRecord.toReplyDomain(): CreatorChannelCommunityReply { return CreatorChannelCommunityReply( commentId = commentId, + writerId = writerId, writerProfileImageUrl = writerProfilePath.toCdnUrl(cloudFrontHost) ?: defaultProfileImageUrl(), writerNickname = writerNickname.removeDeletedNicknamePrefix(), content = content, diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/domain/CreatorChannelCommunityPostDetail.kt b/src/main/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/domain/CreatorChannelCommunityPostDetail.kt index febccbbb..e3e250e8 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/domain/CreatorChannelCommunityPostDetail.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/domain/CreatorChannelCommunityPostDetail.kt @@ -17,6 +17,7 @@ data class CreatorChannelCommunityComments( data class CreatorChannelCommunityComment( val commentId: Long, + val writerId: Long, val writerProfileImageUrl: String, val writerNickname: String, val content: String, @@ -33,6 +34,7 @@ data class CreatorChannelCommunityReplies( data class CreatorChannelCommunityReply( val commentId: Long, + val writerId: Long, val writerProfileImageUrl: String, val writerNickname: String, val content: String, diff --git a/src/test/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/application/CreatorChannelCommunityQueryServiceTest.kt b/src/test/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/application/CreatorChannelCommunityQueryServiceTest.kt index 1d6569cd..4f4d816e 100644 --- a/src/test/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/application/CreatorChannelCommunityQueryServiceTest.kt +++ b/src/test/kotlin/kr/co/vividnext/sodalive/v2/creator/channel/community/application/CreatorChannelCommunityQueryServiceTest.kt @@ -194,7 +194,9 @@ class CreatorChannelCommunityQueryServiceTest { assertEquals(21, detail.comments.commentCount) assertEquals(20, detail.comments.comments.size) assertEquals(true, detail.comments.hasNext) + assertEquals(101L, detail.comments.comments.first().writerId) assertEquals("reply-writer", detail.comments.comments.first().latestReply?.writerNickname) + assertEquals(200L, detail.comments.comments.first().latestReply?.writerId) assertEquals("https://cdn.test/profile/default-profile.png", detail.comments.comments.first().writerProfileImageUrl) } @@ -234,8 +236,10 @@ class CreatorChannelCommunityQueryServiceTest { assertEquals((1L..50L).toList(), port.latestReplyCommentIds) assertEquals(50, comments.comments.size) assertEquals(true, comments.hasNext) + assertEquals(101L, comments.comments.first().writerId) assertEquals("https://cdn.test/profile/1.png", comments.comments.first().writerProfileImageUrl) assertEquals(100L, comments.comments[1].latestReply?.commentId) + assertEquals(200L, comments.comments[1].latestReply?.writerId) } @Test @@ -255,6 +259,7 @@ class CreatorChannelCommunityQueryServiceTest { assertEquals(0L, port.replyListOffset) assertEquals(51, port.replyListLimit) assertEquals(true, replies.hasNext) + assertEquals(101L, replies.replies.first().writerId) } @Test