package com.red.circle.console.app.dto.cmd.admin;

import com.red.circle.framework.core.dto.CommonCommand;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 修改密码.
 *
 * @author pengliang on 2023/5/12
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class PasswordCmd extends CommonCommand {

  private static final long serialVersionUID = 1L;

  /**
   * 原密码.
   */
  @NotBlank(message = "原密码不能为空", groups = Update.class)
  private String oldPassword;
  /**
   * 新密码.
   */
  @NotBlank(message = "新密码不能为空", groups = Update.class)
  private String newPassword;

  public interface Update {

  }

}
