package cn.gistack.sm.dayReportFlood.feign;
|
|
import cn.gistack.sm.dayReportFlood.entity.DayReportFlood;
|
import cn.gistack.sm.message.feign.IMessageClientFallback;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@FeignClient(
|
value = "blade-sm",
|
fallback = IDayReportFloodClientFallback.class
|
)
|
public interface IDayReportFloodClient {
|
String API_PREFIX = "/client";
|
|
String SAVE_DAY_REPORT_FLOOD = API_PREFIX + "saveDayReportFlood";
|
|
@PostMapping(SAVE_DAY_REPORT_FLOOD)
|
boolean save(@RequestBody DayReportFlood saveEntity);
|
}
|