package com.css.simulation.resource.server.infra.feign.service;

import api.common.pojo.common.ResponseBodyVO;
import com.css.simulation.resource.server.infra.feign.config.FeignConfiguration;
import com.css.simulation.resource.server.infra.feign.fallback.SchedulerServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient(name = "scheduler", url = "http://47.94.105.148", path = "/simulation/resource/scheduler", fallback = SchedulerServiceFallback.class, configuration = FeignConfiguration.class)
@FeignClient(
        contextId = "scheduler",
        value = "simulation-resource-scheduler",
        path = "/simulation/resource/scheduler",
        fallback = SchedulerServiceFallback.class,
        configuration = FeignConfiguration.class
)
public interface SchedulerService {

    @PostMapping(value = "/algorithm/check")
    ResponseBodyVO<String> check(@RequestParam("minioPath") String minioPath);

}
