package com.red.circle.other.app.command.game.burstcrystal;

import com.red.circle.common.business.core.enums.SysOriginPlatformEnum;
import com.red.circle.common.business.dto.cmd.RoomIdCmd;
import com.red.circle.other.app.common.game.GameBurstCrystalCommon;
import com.red.circle.other.app.dto.clientobject.game.GameBurstCrystalScheduleCO;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 获取游戏进度信息.
 *
 * @author zongpubin on 2023/11/28
 */
@Component
@RequiredArgsConstructor
public class GameBurstCrystalScheduleTwoFunQueryExe {

  private final GameBurstCrystalCommon gameBurstCrystalCommon;

  public List<GameBurstCrystalScheduleCO> execute(RoomIdCmd cmd) {
    return gameBurstCrystalCommon.listProgressScheduleTwoFun(
        SysOriginPlatformEnum.valueOf(cmd.getReqSysOrigin().getOrigin()), cmd.getRoomId());
  }

}
