企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**ParamUser** ~~~ package com.nobb.validate; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; public class ParamUser { private Integer id; private String name; @NotBlank(message="用户密码不能为空") @NotNull(message = "用户密码不能为空") private String password; @NotBlank(message="手机号码不能为空") @NotNull(message = "手机号码不能为空") private Long mobile; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Long getMobile() { return mobile; } public void setMobile(Long mobile) { this.mobile = mobile; } @Override public String toString() { return "ParamUser{" + "id=" + id + ", name='" + name + '\'' + ", password='" + password + '\'' + ", mobile=" + mobile + '}'; } } ~~~