|
|
@@ -8,16 +8,16 @@ import com.goafanti.common.constant.ErrorConstants;
|
|
|
|
|
|
public class InputUser {
|
|
|
|
|
|
- @Size(min = 1, max = 11, message = "{" + ErrorConstants.MOBILE_SIZE_ERROR + "}")
|
|
|
+ @Size(min = 0, max = 11, message = "{" + ErrorConstants.MOBILE_SIZE_ERROR + "}")
|
|
|
private String mobile;
|
|
|
|
|
|
- @Size(min = 1, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
+ @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String unitName;
|
|
|
|
|
|
- @Size(min = 1, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
+ @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String password;
|
|
|
|
|
|
- @Size(min = 1, max = 32, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
+ @Size(min = 0, max = 32, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String username;
|
|
|
@Max(value = 2, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|