package cn.gistack.sm.sjztmd.feign;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
|
@FeignClient(
|
value = "blade-sm",
|
fallback = ISjztMdClientFallback.class
|
)
|
public interface ISjztMdClient {
|
String API_PREFIX = "/client";
|
|
String GENERATE_DAY_REPORT_FLOOD = API_PREFIX + "generateDayReportFlood";
|
|
String GET_RESERVOIR_RAINFALL_FORECAST = API_PREFIX + "/getReservoirRainfallForecast";
|
|
@GetMapping(GENERATE_DAY_REPORT_FLOOD)
|
String generateDayReportFlood(@RequestParam("isShow") String isShow) throws Exception;
|
|
|
@GetMapping(GET_RESERVOIR_RAINFALL_FORECAST)
|
void getReservoirRainfallForecast(@RequestParam("dayIndexList") List<String> dayIndexList) throws Exception;
|
|
}
|