This commit is contained in:
张良(004796)
2024-04-24 20:02:20 +08:00
parent adae359bff
commit a3c57e7bce
3 changed files with 6 additions and 1 deletions

View File

@@ -47,6 +47,8 @@ public class User implements Serializable {
*/
@Schema(description = "开通的VIP类型")
private Integer vipType;
@Schema(description = "vip到期时间")
private LocalDateTime vipTimeout;
/**
* 密码
*/

View File

@@ -80,6 +80,8 @@ public class CurrentUserInfoVo {
*/
@Schema(description = "vip等级",hidden = true)
private Integer vipType;
@Schema(description = "vip到期时间")
private LocalDateTime vipTimeout;
/**
* 收益的余额
*/

View File

@@ -118,7 +118,8 @@ public class CurrentUserManager {
vo.setUserPicturesList(BeanConvertUtil.convertListTo(userPictures, UserPicturesDTO::new));
if(user.getOpenVip() != null){
vo.setOpenVip(user.getOpenVip());
// vo.setVipType();
vo.setVipType(user.getVipType());
vo.setVipTimeout(user.getVipTimeout());
}
UserExtend userExtend = userExtendService.getByUserId(userId);
vo.setIncomeCoin(userExtend.getIncomeCoin());