package com.red.circle.other.app.dto.clientobject.material;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import com.red.circle.other.inner.model.dto.material.PropsResourcesDTO;
import com.red.circle.other.inner.model.dto.material.props.PropsPrice;
import java.io.Serial;
import java.math.BigDecimal;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 商品信息.
 *
 * @author pengliang on 2021/5/19
 */
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@EqualsAndHashCode(callSuper = true)
public class PropsStoreCommodityInfoCO extends ClientObject {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 标签.
   */
  private String label;

  /**
   * 道具优惠比率.
   */
  private BigDecimal discount;

  /**
   * 道具资源.
   */
  private PropsResourcesDTO propsResources;

  /**
   * 道具价格.
   */
  private List<PropsPrice> propsPrices;

  /**
   * 钻石价格.
   */
  private List<PropsPrice> diamondPrices;

}
