release: 个人信息中返回会员信息

release-2024-08-08
huangyw 4 months ago
parent a0d580aaf1
commit e4bdceb143

@ -103,6 +103,9 @@ public class MyController extends BaseController {
userRespDTO.setAppleEmail(user.getAppleEmail()); userRespDTO.setAppleEmail(user.getAppleEmail());
userRespDTO.setEnableNotice(1); userRespDTO.setEnableNotice(1);
userRespDTO.setEnablePush(1); userRespDTO.setEnablePush(1);
userRespDTO.setVipStatus(user.getVipStatus());
userRespDTO.setVipExpireTime(user.getVipExpireTime());
if (null != user.getEnableNotice()) { if (null != user.getEnableNotice()) {
userRespDTO.setEnableNotice(user.getEnableNotice()); userRespDTO.setEnableNotice(user.getEnableNotice());
} }

@ -1,10 +1,13 @@
package com.luoo.user.dto.response; package com.luoo.user.dto.response;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDate;
import java.util.List; import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@Data @Data
public class UserRespDTO implements Serializable { public class UserRespDTO implements Serializable {
@ -70,4 +73,18 @@ public class UserRespDTO implements Serializable {
*/ */
@ApiModelProperty(value = "是否启用推送0为关闭1为启用默认启用") @ApiModelProperty(value = "是否启用推送0为关闭1为启用默认启用")
private Integer enablePush; private Integer enablePush;
/**
* 0- 1- 2-
*/
@ApiModelProperty(value = "会员状态 0-未开通 1-生效中 2-已过期")
private Integer vipStatus;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(value = "会员到期时间")
private LocalDate vipExpireTime;
} }

Loading…
Cancel
Save