package com.red.circle.other.infra.database.mongo.service.props;

import com.red.circle.common.business.core.enums.SysOriginPlatformEnum;
import com.red.circle.other.infra.database.mongo.dto.query.PropsSaleQuotaQuery;
import com.red.circle.other.infra.database.mongo.entity.props.StatisticsPropsSaleQuota;
import java.util.List;

/**
 * 道具销售情况.
 *
 * @author pengliang on 2022/4/1
 */
public interface StatisticsPropsSaleQuotaService {

  /**
   * 统计平台道具销售情况.
   */
  void incSaleQuota(SysOriginPlatformEnum sysOrigin, String propsType, Long propsSourceId);

  /**
   * 查询指定道具销售额.
   */
  List<StatisticsPropsSaleQuota> listPropsSaleQuota(PropsSaleQuotaQuery query);

  /**
   * 获取指定年总额.
   */
  Long getYearPropsSaleQuota(SysOriginPlatformEnum sysOrigin, Long propsSourceId);

}
