送礼推送添加giftVo

This commit is contained in:
2024-12-04 11:24:10 +08:00
parent a679c2609d
commit f221223128
2 changed files with 11 additions and 0 deletions

View File

@@ -53,6 +53,8 @@ public class GiftNotifyVo implements Serializable {
private Users[] targetUsers;
private Long[] targetUids;
private GiftVo giftVo;//客户端要的
public Long getRecvUserUid() {
return recvUserUid;
}
@@ -300,4 +302,12 @@ public class GiftNotifyVo implements Serializable {
public void setTargetUids(Long[] targetUids) {
this.targetUids = targetUids;
}
public GiftVo getGiftVo() {
return giftVo;
}
public void setGiftVo(GiftVo giftVo) {
this.giftVo = giftVo;
}
}

View File

@@ -270,6 +270,7 @@ public class GiftNotifyListener implements ApplicationListener<GiftMessageEvent>
GiftNotifyVo giftNotifyVo = new GiftNotifyVo();
giftNotifyVo.setGiftId(giftId);
giftNotifyVo.setGiftUrl(gift.getPicUrl());
giftNotifyVo.setGiftVo(giftService.getGiftVoByGift(gift));
giftNotifyVo.setNotifyFull(gift.getNotifyFull());
giftNotifyVo.setShowAvatarType(gift.getShowAvatarType());
Long sendUserUid = giftMessage.getSendUid();