feat(channel): 채널 홈 좋아요 응답을 추가한다

This commit is contained in:
2026-06-30 01:11:37 +09:00
parent 502d5d9996
commit 816f23ebcc
4 changed files with 17 additions and 6 deletions

View File

@@ -182,7 +182,9 @@ data class CreatorChannelCommunityPostResponse(
val dateUtc: String,
val existOrdered: Boolean,
val likeCount: Int,
val commentCount: Int
val commentCount: Int,
@JsonProperty("isLiked")
val isLiked: Boolean
) {
companion object {
fun from(post: CreatorChannelCommunityPost): CreatorChannelCommunityPostResponse {
@@ -198,7 +200,8 @@ data class CreatorChannelCommunityPostResponse(
dateUtc = post.createdAt.toUtcIso(),
existOrdered = post.existOrdered,
likeCount = post.likeCount,
commentCount = post.commentCount
commentCount = post.commentCount,
isLiked = post.isLiked
)
}
}