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.Serializable;
import java.sql.Timestamp;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 礼物规格概率基础配置
 *
 * @author zongpubin on 2023/6/19
 */
@Data
@Accessors(chain = true)
public class GameLuckyGiftProbabilityDTO implements Serializable {

  private static final long serialVersionUID = 1L;
  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 规格id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long standardId;

  /**
   * 礼物数量.
   */
  private Integer giftQuantity;

  /**
   * 连击递增次数.
   */
  private Integer comboIncrements;

  /**
   * 累计送礼次数.
   */
  private Integer giftGiveTotal;

  /**
   * 总签数.
   */
  private Integer signTotal;

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

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

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

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

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

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

  /**
   * 礼物规格概率详情
   */
  private List<GameLuckyGiftProbabilityDetailsDTO> gameLuckyGiftProbabilityDetails;

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


}
