package com.yuchen.saas.manage.user.api.request.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author 蔡文强
 * @Date 2023/6/26 15:56
 * @Description 修改密码传参
 */
@Data
public class UserUpdatePasswordDTO {

    @ApiModelProperty(value = "类型(1:手机号 2:邮箱)")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "邮箱号")
    private String email;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPassword;

    @ApiModelProperty(value = "确认新密码")
    @NotBlank(message = "确认新密码不能为空")
    private String confirmPassword;
}
