package com.red.circle.game.fruit.application.dto.cmd;

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

/**
 * @author lisizhe 2023/12/4  16:33
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class UserBetCmd extends CommonCommand {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 用户id
   */
  @NotNull
  private Long uid;

  /**
   * 系统来源
   */
  private String sysOrigin;

  /**
   * 游戏轮数id
   */
  private Long gameId;

  /**
   * 是否自动 1 是 0 否
   */
  @NotNull
  private Integer autoStart;

  /**
   * 总下注金额
   */
  private BigDecimal sumAmount;

  /**
   * 下注奖品信息
   */
  @NotEmpty
  private List<BetPrizeCmd> betPrizes;
}
