package cn.sikey.selenium.api.selenium.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: nelson
 * @Date: 2025/6/26
 * @Description: 校验验证码
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VerifyCodeReqDTO {
    /**
     * 手机号
     */
    @NotBlank(message = "手机号是空")
    // @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phoneNumber;

    @NotBlank(message = "验证码不能为空")
    @Pattern(regexp = "\\d{6}", message = "验证码必须是6位数字")
    private String verificationCode;

    /**
     * 设备标识
     */
    @NotBlank(message = "设备标识是空")
    private String ticket;
}
