package com.sckw.fleet.model.dto;

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

/**
 * @author zk
 * @desc 忘记密码
 * @date 2023/08/15
 */
@Data
public class ForgetPasswordDto {

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空！")
    @Pattern(regexp = "^1[3456789]\\d{9}$", message = "账号是您的手机号码，请确认再输入！")
    private String account;

    /**
     * 旧密码
     */
    @NotBlank(message = "密码不能为空！")
    private String password;

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