package com.red.circle.other.app.dto.cmd.activity;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 可提现金额兑换金币CMD.
 *
 * @author system
 * @since 2025-10-24
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class LotteryExchangeGoldCmd extends AppExtCommand {

  /**
   * 活动ID（可选）.
   */
  private Long activityId;

  /**
   * 兑换金额.
   */
  @NotNull(message = "兑换金额不能为空")
  @DecimalMin(value = "0.01", message = "兑换金额必须大于0")
  private BigDecimal amount;

}