package org.dromara.app.domain.bo;

import com.fasterxml.jackson.annotation.JsonAlias;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * APP 忘记密码请求。
 */
@Data
public class AppForgotPasswordBo {

    @JsonAlias("userName")
    @NotBlank(message = "账号不能为空")
    @Length(min = 2, max = 64, message = "账号长度必须在2到64个字符之间")
    private String username;

    @JsonAlias("smsCode")
    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "新密码不能为空")
    @Length(min = 5, max = 30, message = "密码长度必须在5到30个字符之间")
    private String password;
}
