|
@@ -1,8 +1,12 @@
|
|
|
package com.yonge.cooleshow.auth.api.dto;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.yonge.cooleshow.common.enums.UserGenderEnum;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* @Author: liweifan
|
|
@@ -16,6 +20,10 @@ public class UserSetReq {
|
|
|
private String username;
|
|
|
@ApiModelProperty(value = "性别 0女 1男")
|
|
|
private Integer gender;
|
|
|
+ @ApiModelProperty(value = "出生日期")
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
|
|
+ private Date birthdate;
|
|
|
|
|
|
public String getAvatar() {
|
|
|
return avatar;
|
|
@@ -40,4 +48,12 @@ public class UserSetReq {
|
|
|
public void setGender(Integer gender) {
|
|
|
this.gender = gender;
|
|
|
}
|
|
|
+
|
|
|
+ public Date getBirthdate() {
|
|
|
+ return birthdate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBirthdate(Date birthdate) {
|
|
|
+ this.birthdate = birthdate;
|
|
|
+ }
|
|
|
}
|