package com.red.circle.other.app.service.activity;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.other.app.command.activity.query.RewardPoolQueryExe;
import com.red.circle.other.app.command.activity.query.SeasonCpTop1QueryExe;
import com.red.circle.other.app.command.activity.query.WeekCpUserGiftQueryExe;
import com.red.circle.other.app.dto.clientobject.activity.ActivityCpUserRankingCO;
import com.red.circle.other.app.dto.clientobject.activity.ActivityWeekCpGiftCO;
import com.red.circle.other.app.dto.clientobject.activity.RewardPoolCO;
import com.red.circle.other.app.dto.cmd.activity.CpRankingQueryCmd;
import com.red.circle.other.app.dto.cmd.activity.RewardPoolCmd;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * CP排行榜服务.
 */
@Service
@RequiredArgsConstructor
public class WeekCpUserGiftServiceImpl implements WeekCpUserGiftService {

  private final RewardPoolQueryExe rewardPoolQueryExe;
  private final WeekCpUserGiftQueryExe weekCpUserGiftQueryExe;
  private final SeasonCpTop1QueryExe seasonCpTop1QueryExe;

  @Override
  public List<RewardPoolCO> listRewardPool(RewardPoolCmd cmd) {
    return rewardPoolQueryExe.execute(cmd);
  }

  @Override
  public ActivityWeekCpGiftCO rankingData(CpRankingQueryCmd cmd) {
    return weekCpUserGiftQueryExe.execute(cmd);
  }

  @Override
  public List<ActivityCpUserRankingCO> seasonTop1(AppExtCommand cmd) {
    return seasonCpTop1QueryExe.execute(cmd);
  }
}
