评论功能完善

This commit is contained in:
x ronger 2020-03-08 00:13:22 +08:00
parent ea3bc5402a
commit 0e053ef714
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,8 @@ public class CommentDTO {
private Integer commentOriginalCommentId; private Integer commentOriginalCommentId;
/** 父评论作者头像 */ /** 父评论作者头像 */
private String commentOriginalAuthorThumbnailURL; private String commentOriginalAuthorThumbnailURL;
/** 父评论作者昵称 */
private String commentOriginalAuthorNickname;
/** 状态 */ /** 状态 */
private String commentStatus; private String commentStatus;
/** 0公开回帖1匿名回帖 */ /** 0公开回帖1匿名回帖 */

View File

@ -44,6 +44,7 @@ public class CommentServiceImpl extends AbstractService<Comment> implements Comm
Author commentOriginalAuthor = commentMapper.selectCommentOriginalAuthor(commentDTO.getCommentOriginalCommentId()); Author commentOriginalAuthor = commentMapper.selectCommentOriginalAuthor(commentDTO.getCommentOriginalCommentId());
if (commentOriginalAuthor != null) { if (commentOriginalAuthor != null) {
commentDTO.setCommentOriginalAuthorThumbnailURL(commentOriginalAuthor.getUserAvatarURL()); commentDTO.setCommentOriginalAuthorThumbnailURL(commentOriginalAuthor.getUserAvatarURL());
commentDTO.setCommentOriginalAuthorNickname(commentOriginalAuthor.getUserNickname());
} }
} }
}); });