package com.css.simulation.resource.scheduler.infra.feign.algorithm;

import api.common.pojo.common.ResponseBodyVO;
import api.common.pojo.param.project.SimulationManualProjectParam;
import api.common.pojo.vo.project.ProjectDetailsVO;
import com.css.simulation.resource.scheduler.infra.feign.algorithm.fallback.WebServerClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "server", value = "simulation-resource-server", path = "/simulation/resource/server", fallback = WebServerClientFallBack.class)
public interface WebServerClient {

    @GetMapping(value = "/simulationProject/selectProjectDetailsByIdForScheduler")
    ResponseBodyVO<ProjectDetailsVO> selectProjectDetailsByIdForScheduler(@RequestBody SimulationManualProjectParam simulationManualProjectParam);
}
