package com.sckw.message.model.vo.req;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author: yzc
 * @date: 2023-06-08 11:30
 * @description: 发送短信验证码请求参数
 */

@Getter
@Setter
@ToString
public class SendSmsVerifyCoderReqVO {

    @NotBlank(message = "手机号不能为空！")
    @Pattern(regexp = "^1[3456789]\\d{9}$", message = "非法的手机号")
    private String phone;

    @NotBlank(message = "短信类型不能为空")
    private String type;
}
