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.text.ParseException;
|
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";
|
|
//保存昨日报汛内容
|
String SAVE_YESTERDAY_FLOOD_REPORT_CONTENT = API_PREFIX + "/saveYesterdayFloodReportContent";
|
|
String GET_PROJECT_CHECK_STATUS = API_PREFIX + "/updateProjectCheckStatus";
|
|
@GetMapping(GENERATE_DAY_REPORT_FLOOD)
|
String generateDayReportFlood(@RequestParam("isShow") String isShow) throws Exception;
|
|
@GetMapping(SAVE_YESTERDAY_FLOOD_REPORT_CONTENT)
|
String saveYesterdayFloodReportContent(@RequestParam("isShow") String isShow) throws Exception;
|
|
|
@GetMapping(GET_RESERVOIR_RAINFALL_FORECAST)
|
void getReservoirRainfallForecast(@RequestParam("dayIndexList") List<String> dayIndexList) throws Exception;
|
|
@GetMapping(GET_PROJECT_CHECK_STATUS)
|
void setGetProjectCheckStatus() throws ParseException;
|
|
}
|