package com.yn.bftl.thirdparty.modules.chinaums.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 支付密码修改DTO
 *
 * @author huabiao
 * @create 2023/3/2  14:39
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "PasswordUpdateDTO", description = "支付密码修改DTO")
public class PasswordUpdateDTO {

    @ApiModelProperty(value = "原支付密码", required = true)
    @NotBlank
    private String originalPassword;

    @ApiModelProperty(value = "新支付密码", required = true)
    @NotBlank
    @Length(min = 6, max = 24)
    private String newPassword;

    @ApiModelProperty(value = "随机因子", required = true)
    @NotBlank
    private String plugRandomKey;
}
