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.ActivityRewardQueryExe;
import com.red.circle.other.app.command.activity.query.WeekFriendshipCardQueryExe;
import com.red.circle.other.app.dto.clientobject.activity.ActivityWeekFriendshipCardCO;
import com.red.circle.other.app.dto.cmd.activity.ActivityRewardQueryCmd;
import com.red.circle.other.inner.model.dto.activity.props.ActivityResource;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 首充奖励池.
 *
 * @author pengshigang on 2021/8/3
 */
@Service
@RequiredArgsConstructor
public class WeekFriendshipCardServiceImpl implements WeekFriendshipCardService {

  private final ActivityRewardQueryExe activityRewardQueryExe;
  private final WeekFriendshipCardQueryExe weekFriendshipCardQueryExe;

  @Override
  public List<ActivityResource> listRewardPool(ActivityRewardQueryCmd cmd) {
    return activityRewardQueryExe.execute(cmd);
  }

  @Override
  public ActivityWeekFriendshipCardCO cardData(AppExtCommand cmd) {
    return weekFriendshipCardQueryExe.execute(cmd);
  }
}
