package com.red.circle.other.app.command.activity.query;

import com.red.circle.other.app.dto.cmd.activity.ActivityRewardQueryCmd;
import com.red.circle.other.domain.gateway.props.ActivitySourceGroupGateway;
import com.red.circle.other.inner.model.dto.activity.props.ActivityResource;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 奖励-信息.
 *
 * @author pengliang on 2021/12/29
 */
@Service
@RequiredArgsConstructor
public class ActivityRewardQueryExe {

  private final ActivitySourceGroupGateway activitySourceGroupGateway;

  public List<ActivityResource> execute(ActivityRewardQueryCmd cmd) {
    return activitySourceGroupGateway
        .listActivityResource(cmd.requireReqSysOriginEnum(), cmd.getActivityType());
  }
}
