package cn.reghao.bnt.web.admin.model.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;

/**
 * @author reghao
 * @date 2023-02-22 11:04:24
 */
@Setter
@Getter
public class UpdatePasswordDto {
    @NotNull(message = "当前密码不能为 null")
    @Length(min = 8, max = 16, message = "当前密码长度在 8 ~ 16 个字符")
    private String currentPasswd;
    @NotNull(message = "新密码不能为 null")
    @Length(min = 8, max = 16, message = "新密码长度在 8 ~ 16 个字符")
    private String newPasswd;
}
