|
|
@@ -22,13 +22,14 @@ public class AccountInfoVO<T> implements Serializable {
|
|
|
/**
|
|
|
* 昵称
|
|
|
*/
|
|
|
- @NotBlank(message = "昵称不能为空")
|
|
|
+ @ApiModelProperty(value = "昵称",required = false)
|
|
|
@Size(max = 100, message = "昵称长度不能超过100个字符")
|
|
|
private String nickname;
|
|
|
|
|
|
/**
|
|
|
* 姓名
|
|
|
*/
|
|
|
+ @ApiModelProperty(value = "姓名",required = false)
|
|
|
@Size(max = 100, message = "姓名长度不能超过100个字符")
|
|
|
private String realName;
|
|
|
|
|
|
@@ -53,7 +54,7 @@ public class AccountInfoVO<T> implements Serializable {
|
|
|
/**
|
|
|
* 性别 1男;2女;3未知
|
|
|
*/
|
|
|
- @NotNull(message = "性别不能为空")
|
|
|
+ @ApiModelProperty(value = "性别",required = false,allowableValues = "1(男)2(女)3(未知)")
|
|
|
private SexEnum sex;
|
|
|
|
|
|
/**
|