feat(channel): 채널 홈 좋아요 응답을 추가한다
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user