package com.red.circle.wallet.inner.model.cmd;

import com.red.circle.framework.core.dto.CommonCommand;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 添加或修改豆子余额.
 *
 * @author pengliang on 2021/10/11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class AddOrSubtractBeansCmd extends CommonCommand {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 类型.
   */
  @NotNull
  private Integer type;

  /**
   * 用户id.
   */
  @NotNull
  private Long userId;

  /**
   * 数额.
   */
  @NotNull
  private BigDecimal quantity;

  /**
   * 原因.
   */
  @NotNull
  private Integer reason;

  /**
   * 备注.
   */
  private String remark;

}
