|
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
+import javax.validation.constraints.Email;
|
|
|
+import javax.validation.constraints.Pattern;
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
/**
|
|
@@ -44,9 +46,11 @@ public class SaveFactoryReq implements Serializable {
|
|
|
@ApiModelProperty(value = "联系人姓名")
|
|
|
private String keymanName;
|
|
|
|
|
|
+ @Pattern(regexp = "^1[0-9]{10}$", message = "手机格式不正确,请重新输入")
|
|
|
@ApiModelProperty(value = "联系人手机号")
|
|
|
private String keymanMobile;
|
|
|
|
|
|
+ @Email
|
|
|
@ApiModelProperty(value = "邮箱")
|
|
|
private String email;
|
|
|
|