Commit 130bfa5a authored by macro's avatar macro
Browse files

Update UmsAdminParam.java

parent 095a1762
...@@ -14,16 +14,16 @@ import javax.validation.constraints.NotEmpty; ...@@ -14,16 +14,16 @@ import javax.validation.constraints.NotEmpty;
@Getter @Getter
@Setter @Setter
public class UmsAdminParam { public class UmsAdminParam {
@NotEmpty
@ApiModelProperty(value = "用户名", required = true) @ApiModelProperty(value = "用户名", required = true)
@NotEmpty(message = "用户名不能为空")
private String username; private String username;
@NotEmpty
@ApiModelProperty(value = "密码", required = true) @ApiModelProperty(value = "密码", required = true)
@NotEmpty(message = "密码不能为空")
private String password; private String password;
@ApiModelProperty(value = "用户头像") @ApiModelProperty(value = "用户头像")
private String icon; private String icon;
@Email
@ApiModelProperty(value = "邮箱") @ApiModelProperty(value = "邮箱")
@Email(message = "邮箱格式不合法")
private String email; private String email;
@ApiModelProperty(value = "用户昵称") @ApiModelProperty(value = "用户昵称")
private String nickName; private String nickName;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment