package com.kxs.user.api.dto.kxsapp.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;


/**
 * 设置-修改登陆密码-dto
 *
 * @author 系统
 * @date 2024-01-03 09:39:57
 */
@Data
public class UserUpdatePwdDTO {

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


    /**
     * 新密码
     */
    @Schema(description = "新密码")
    @NotBlank(message = "新密码不能为空")
    @Length(min = 6, max = 18, message = "密码长度在6-18位之间")
    private String newPwd;


    /**
     * 确认密码
     */
    @Schema(description = "确认密码")
    @NotBlank(message = "确认密码不能为空")
    @Length(min = 6, max = 18, message = "密码长度在6-18位之间")
    private String confirmPwd;




}
