点赞列表显示评论点赞关联的动态

This commit is contained in:
2024-10-12 17:35:48 +08:00
parent dc363122c9
commit 7ec5abe362
3 changed files with 80 additions and 53 deletions

View File

@@ -132,6 +132,8 @@ data class NoticeComment(
val replyComment: NoticeComment?,
@SerializedName("postId")
val postId: Int,
@SerializedName("post")
val post: NoticePost?,
) {
fun toNoticeCommentEntity(): NoticeCommentEntity {
return NoticeCommentEntity(
@@ -139,7 +141,8 @@ data class NoticeComment(
content = content,
postId = postId,
time = ApiClient.dateFromApiString(time),
replyComment = replyComment?.toNoticeCommentEntity()
replyComment = replyComment?.toNoticeCommentEntity(),
post = post?.toNoticePostEntity()
)
}
}