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 jakarta.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 政策.
 *
 * @author pengliang on 2022/12/1
 */
@Data
@Accessors(chain = true)
public class TeamPolicy implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 等级.
   */
  @NotNull(message = "level required.")
  private Integer level;

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

  /**
   * 有效天必填.
   */
  @NotNull(message = "effectiveDay required.")
  @JsonSerialize(using = ToStringSerializer.class)
  private Integer effectiveDay;

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

  /**
   * 成员工资.
   */
  @NotNull(message = "memberSalary required.")
  private BigDecimal memberSalary;

  /**
   * 拥有者工资.
   */
  @NotNull(message = "ownSalary required.")
  private BigDecimal ownSalary;

  /**
   * 合计.
   */
  @NotNull(message = "totalSalary required.")
  private BigDecimal totalSalary;

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

}
