package com.red.circle.other.infra.database.mongo.dto.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.activity.props.ActivityRewardPropsDTO;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 团队工资发送政策.
 *
 * @author pengshigang on 2023/4/13
 */
@Data
@Accessors(chain = true)
public class TeamSalaryPaymentPolicy implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 等级.
   */
  private Integer level;

  /**
   * 在线时间.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long onlineTime;

  /**
   * 目标.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long target;

  /**
   * 成员工资.
   */
  private BigDecimal memberSalary;

  /**
   * 拥有者工资.
   */
  private BigDecimal ownSalary;

  /**
   * 合计.
   */
  private BigDecimal totalSalary;

  /**
   * 道具奖励.
   */
  private List<ActivityRewardPropsDTO> propsRewards;

}
