package com.red.circle.console.infra.database.mongo.count.service;

import com.red.circle.console.infra.database.mongo.count.entity.CountGoldOriginDailyDetails;
import java.util.List;

/**
 * @author pengliang on 2022/9/21
 */
public interface CountGoldOriginDailyDetailsService {

  /**
   * 添加每日金币来源详情.
   */
  void addBatch(List<CountGoldOriginDailyDetails> details);

  /**
   * 根据来源获取最近指定数量记录.
   */
  List<CountGoldOriginDailyDetails> listLatestDays(String origin, Integer size);

  /**
   * 获取指定一天金币来源top.
   */
  @Deprecated
  List<CountGoldOriginDailyDetails> listTopsSize(Integer dateNumber);

}
