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

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.common.business.dto.cmd.app.AppIdLongCmd;
import com.red.circle.other.app.command.activity.GameWeeklyTaskReceiveCmdExe;
import com.red.circle.other.app.command.activity.query.GameWeeklyTaskQueryExe;
import com.red.circle.other.app.dto.clientobject.activity.GameWeeklyTaskCO;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 游戏每周任务活动 实现.
 *
 * @author pengliang on 2022/7/14
 */
@Service
@RequiredArgsConstructor
public class GameWeeklyTasksActivityServiceImpl implements GameWeeklyTasksActivityService {

  private final GameWeeklyTaskQueryExe gameWeeklyTaskQueryExe;
  private final GameWeeklyTaskReceiveCmdExe gameWeeklyTaskReceiveCmdExe;

  @Override
  public List<GameWeeklyTaskCO> list(AppExtCommand cmd) {
    return gameWeeklyTaskQueryExe.execute(cmd);
  }

  @Override
  public void receive(AppIdLongCmd cmd) {
    gameWeeklyTaskReceiveCmdExe.execute(cmd);
  }

}
