|
@@ -8,7 +8,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
|
|
|
|
|
-import javax.validation.constraints.NotEmpty;
|
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
|
import javax.validation.constraints.Pattern;
|
|
import javax.validation.constraints.Pattern;
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
@@ -24,28 +24,28 @@ import java.io.Serializable;
|
|
|
public class SysTenantAddDTO implements Serializable {
|
|
public class SysTenantAddDTO implements Serializable {
|
|
|
private static final long serialVersionUID = 1841053739406204228L;
|
|
private static final long serialVersionUID = 1841053739406204228L;
|
|
|
@ApiModelProperty(value = "租户名称",required = true)
|
|
@ApiModelProperty(value = "租户名称",required = true)
|
|
|
- @NotEmpty(message = "名称不能为空",groups = {Integer.class, Update.class})
|
|
|
|
|
|
|
+ @NotBlank(message = "名称不能为空",groups = {Integer.class, Update.class})
|
|
|
private String name;
|
|
private String name;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "租户套餐id",required = true)
|
|
@ApiModelProperty(value = "租户套餐id",required = true)
|
|
|
- @NotEmpty(message = "套餐不能为空",groups = {Integer.class, Update.class})
|
|
|
|
|
|
|
+ @NotBlank(message = "套餐不能为空",groups = {Integer.class, Update.class})
|
|
|
private String packageId;
|
|
private String packageId;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "租户联系人",required = true)
|
|
@ApiModelProperty(value = "租户联系人",required = true)
|
|
|
- @NotEmpty(message = "联系人不能为空",groups = {Integer.class, Update.class})
|
|
|
|
|
|
|
+ @NotBlank(message = "联系人不能为空",groups = {Integer.class, Update.class})
|
|
|
private String contractUser;
|
|
private String contractUser;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "租户类型",hidden = true)
|
|
@ApiModelProperty(value = "租户类型",hidden = true)
|
|
|
private String type;
|
|
private String type;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "管理账号",required = true)
|
|
@ApiModelProperty(value = "管理账号",required = true)
|
|
|
- @NotEmpty(message = "管理账号不能为空",groups = {Integer.class, Update.class})
|
|
|
|
|
|
|
+ @NotBlank(message = "管理账号不能为空",groups = {Integer.class, Update.class})
|
|
|
@Length(min = 4,max = 16,message = "管理账号长度在4~16之间",groups = {Integer.class, Update.class})
|
|
@Length(min = 4,max = 16,message = "管理账号长度在4~16之间",groups = {Integer.class, Update.class})
|
|
|
@Pattern(regexp = "^[A-Za-z0-9]+$", message = "管理账号格式为数字以及字母",groups = {Insert.class,Update.class})
|
|
@Pattern(regexp = "^[A-Za-z0-9]+$", message = "管理账号格式为数字以及字母",groups = {Insert.class,Update.class})
|
|
|
private String username;
|
|
private String username;
|
|
|
|
|
|
|
|
- @ApiModelProperty("联系人电话")
|
|
|
|
|
- @NotEmpty(message = "联系人电话不能为空",groups = {Integer.class, Update.class})
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "联系人电话",required = true)
|
|
|
|
|
+ @NotBlank(message = "联系人电话不能为空",groups = {Integer.class, Update.class})
|
|
|
private String contactMobile;
|
|
private String contactMobile;
|
|
|
|
|
|
|
|
@ApiModelProperty("租户备注")
|
|
@ApiModelProperty("租户备注")
|