package com.diagbot.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @Description: 获取短信验证码输入参数
 * @author: gaodm
 * @time: 2018/9/4 19:26
 */
@Getter
@Setter
public class SmsVerCreatVO extends ImgVerVerVO{
    //用户电话
    @NotBlank(message = "{mobile.not.null}")
    @Pattern(regexp="^[0-9]\\d*$", message="手机号码必须是数字")
    @Size(max=11, message = "手机号码最多11位")
    private String mobile;
}
