package cn.reghao.tnb.auth.app.model.dto;

import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author reghao
 * @date 2023-02-18 17:47:50
 */
@Setter
@Getter
public class PasswordResetDto implements Serializable {
    private static final long serialVersionUID = 1L;

    private String principal;
    @Size(min = 6, max = 6, message = "验证码长度应为 6 位")
    private String verifyCode;
    @NotBlank(message = "密码不能为空")
    private String newCredential;
    @Size(min = 5, max = 5, message = "captcha 长度应为 5 位")
    private String captchaCode;
}
