package com.sckw.fleet.model.dto;

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

/**
 * @author zk
 * @desc 更换手机
 * @date 2023/7/11 0011
 */
@Data
public class ReplacePhoneDto {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空!")
    @Pattern(regexp = "^1[3456789]\\d{9}$", message = "电话号码格式不正确！")
    private String phone;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空!")
    private String captcha;

    private Long driverId;
}
