release-- 评论模块加isBetaUser

release-2024-04-25
wangqing 2 months ago
parent 47b87a329c
commit 8d7796e3cb

@ -278,6 +278,7 @@ public class CommentController extends BaseController {
if (null != commentUserInfo) {
commentResp.setNickName(commentUserInfo.getNickName());
commentResp.setAvatar(getAvatar(commentUserInfo));
commentResp.setIsBetaUser(commentUserInfo.getIsBetaUser());
if (StringUtils.isNotEmpty(commentUserInfo.getBadges())){
Set<Integer> badgeSet = new HashSet<>();
Arrays.stream(commentUserInfo.getBadges().split(",")).forEach(b->{
@ -357,6 +358,7 @@ public class CommentController extends BaseController {
UserInfo commentUserInfo = userInfoService.findById(comment.getUserId());
commentResp.setNickName(commentUserInfo.getNickName());
commentResp.setAvatar(Constants.RESOURCE_PREFIX+commentUserInfo.getAvatar());
commentResp.setIsBetaUser(commentUserInfo.getIsBetaUser());
if (StringUtils.isNotEmpty(commentUserInfo.getBadges())){
Set<Integer> badgeSet = new HashSet<>();
Arrays.stream(commentUserInfo.getBadges().split(",")).forEach(b->{

@ -71,4 +71,9 @@ public class Comment implements Serializable {
@ApiModelProperty(value = "用户标识,贡献者:1 ")
private List<Integer> badgeList;
/**
* 10
*/
private Integer isBetaUser;
}

@ -65,4 +65,9 @@ public class CommentResp implements Serializable {
@ApiModelProperty(value = "用户标识,贡献者:1 ")
private List<Integer> badgeList;
/**
* 10
*/
private Integer isBetaUser;
}

@ -159,4 +159,9 @@ public class UserInfo implements Serializable {
public String getWxNickname() {
return EmojiConverterUtil.decode(wxNickname);
}
/**
* 10
*/
private Integer isBetaUser;
}

Loading…
Cancel
Save