package jnpf.model.personnels.req.employment;

import cn.hutool.core.lang.RegexPool;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

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

/**
 * 发送短信
 */
@Data
public class SendPhoneMsgReq {

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空")
    @Length(min = 11, max = 11, message = "手机号码长度不能超过11位")
    @Pattern(regexp = RegexPool.MOBILE, message = "手机号码格式不正确")
    private String phone;
}
