|
@@ -2,6 +2,8 @@ package com.inkasso.factoring.businessConsulting.model.request;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import lombok.Data;
|
|
|
+
|
|
|
+import javax.validation.constraints.Email;
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import javax.validation.constraints.Size;
|
|
@@ -36,12 +38,13 @@ public class AddBusinessConsultingRequest {
|
|
|
*工作邮箱
|
|
|
*/
|
|
|
@Size(max=100,message="工作邮箱长度不能超过{max}位")
|
|
|
+ @Email()
|
|
|
private String email;
|
|
|
|
|
|
/**
|
|
|
*手机号(大陆)
|
|
|
*/
|
|
|
- @Size(max=11,message="手机号(大陆)长度不能超过{max}位")
|
|
|
+ @Size(max=11,min = 11,message="手机号(大陆)长度不能超过{max}位")
|
|
|
private String phoneNumber;
|
|
|
|
|
|
/**
|