diff --git a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java index dc0d3bb..2da37b0 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java @@ -103,6 +103,9 @@ public class MyController extends BaseController { userRespDTO.setAppleEmail(user.getAppleEmail()); userRespDTO.setEnableNotice(1); userRespDTO.setEnablePush(1); + userRespDTO.setVipStatus(user.getVipStatus()); + userRespDTO.setVipExpireTime(user.getVipExpireTime()); + if (null != user.getEnableNotice()) { userRespDTO.setEnableNotice(user.getEnableNotice()); } diff --git a/luoo_user/src/main/java/com/luoo/user/dto/response/UserRespDTO.java b/luoo_user/src/main/java/com/luoo/user/dto/response/UserRespDTO.java index 7bc8cc9..6807398 100644 --- a/luoo_user/src/main/java/com/luoo/user/dto/response/UserRespDTO.java +++ b/luoo_user/src/main/java/com/luoo/user/dto/response/UserRespDTO.java @@ -1,10 +1,13 @@ package com.luoo.user.dto.response; import java.io.Serializable; +import java.time.LocalDate; import java.util.List; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; @Data public class UserRespDTO implements Serializable { @@ -70,4 +73,18 @@ public class UserRespDTO implements Serializable { */ @ApiModelProperty(value = "是否启用推送,0为关闭,1为启用,默认启用") 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; }