package com.red.circle.other.inner.model.cmd.activity;

import com.red.circle.framework.dto.Command;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 奖品配置命令.
 *
 * @author system
 * @since 2025-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class LotteryPrizeSaveCmd {

  /**
   * 奖品ID（更新时需要）.
   */
  private Long id;

  /**
   * 活动ID.
   */
  @NotNull(message = "活动ID不能为空")
  private Long activityId;

  /**
   * 奖品编码.
   */
  @NotBlank(message = "奖品编码不能为空")
  private String prizeCode;

  /**
   * 奖品名称.
   */
  @NotBlank(message = "奖品名称不能为空")
  private String prizeName;

  /**
   * 奖品类型.
   */
  @NotBlank(message = "奖品类型不能为空")
  private String prizeType;

  /**
   * 奖品价值.
   */
  private BigDecimal prizeValue;

  /**
   * 奖品图片.
   */
  private String prizeImage;

  /**
   * 奖品等级.
   */
  private Integer prizeLevel;

  /**
   * 总库存.
   */
  @NotNull(message = "总库存不能为空")
  private Integer totalStock;

  /**
   * 每日库存限制.
   */
  private Integer dailyStock;

  /**
   * 中奖概率.
   */
  @NotNull(message = "中奖概率不能为空")
  private BigDecimal probability;

  /**
   * 排序.
   */
  private Integer sortOrder;

  /**
   * 是否展示.
   */
  private Integer isDisplay;

}
