package com.fufan.mtsaas.aliyun.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

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

@Data
public class SendVerificationCodeRequest {

    @NotBlank
    @Pattern(regexp = "^[1-9]\\d{10}$", message = "手机号格式不正确")
    @ApiModelProperty(value = "接收短信的手机号码", required = true)
    private String phoneNumber;

}
