✨ 评论功能完善
This commit is contained in:
parent
ea3bc5402a
commit
0e053ef714
@ -23,6 +23,8 @@ public class CommentDTO {
|
||||
private Integer commentOriginalCommentId;
|
||||
/** 父评论作者头像 */
|
||||
private String commentOriginalAuthorThumbnailURL;
|
||||
/** 父评论作者昵称 */
|
||||
private String commentOriginalAuthorNickname;
|
||||
/** 状态 */
|
||||
private String commentStatus;
|
||||
/** 0:公开回帖,1:匿名回帖 */
|
||||
|
@ -44,6 +44,7 @@ public class CommentServiceImpl extends AbstractService<Comment> implements Comm
|
||||
Author commentOriginalAuthor = commentMapper.selectCommentOriginalAuthor(commentDTO.getCommentOriginalCommentId());
|
||||
if (commentOriginalAuthor != null) {
|
||||
commentDTO.setCommentOriginalAuthorThumbnailURL(commentOriginalAuthor.getUserAvatarURL());
|
||||
commentDTO.setCommentOriginalAuthorNickname(commentOriginalAuthor.getUserNickname());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user