package com.red.circle.other.inner.model.dto.game;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 幸运礼物规格配置信息
 *
 * @author zongpubin on 2023/6/19
 */
@Data
@Accessors(chain = true)
public class GameLuckyGiftStandardConfigDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 归属系统.
   */
  private String sysOrigin;

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

  /**
   * 创建时间.
   */
  private Timestamp createTime;

  /**
   * 修改时间.
   */
  private Timestamp updateTime;

  /**
   * 创建用户.
   */
  private Long createUser;

  /**
   * 修改用户.
   */
  private Long updateUser;

  /**
   * 礼物规格概率基础配置
   */
  private List<GameLuckyGiftProbabilityDTO> gameLuckyGiftProbability;

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


}
