package com.red.circle.console.app.dto.clienobject.game;

import com.red.circle.other.inner.model.dto.game.GameLuckyBoxProbabilityConfigDTO;
import com.red.circle.other.inner.model.dto.game.GameLuckyBoxTimeConfigDTO;
import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 抽奖规格配置.
 * </p>
 *
 * @author zongpubin on 2023-08-18 17:43
 */
@Data
@Accessors(chain = true)
public class GameLuckyBoxStandardDetailsConfigCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 抽奖频数配置
   */
  @NotNull
  private GameLuckyBoxTimeConfigDTO gameLuckyBoxTimeConfig;

  /**
   * 抽奖规格概率详情
   */
  private List<GameLuckyBoxProbabilityConfigDTO> gameLuckyBoxProbabilityConfigs;

  public void setOperationUser(Long operationUser) {
    gameLuckyBoxTimeConfig.setCreateUser(operationUser);
    gameLuckyBoxTimeConfig.setUpdateUser(operationUser);
  }


}
