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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.DTO;
import java.io.Serial;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 活动奖品.
 *
 * @author pengliang on 2022/8/12
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class ActivityConfigRewardsDTO extends DTO {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long rewardId;

  /**
   * 名次范围.
   */
  private String rankRange;

  /**
   * 资源组ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long resourceGroupId;

  /**
   * 奖品信息.
   */
  private List<Object> rewards;

  // ==================== 活动结束后填充数据 ====================
  /**
   * 排名用户.
   */
  private List<ActivityAwardRankUserDTO> rankUsers;

  /**
   * true 已发送， false 未发送.
   */
  private Boolean status;
}
