package com.njcn.advance.api;

import com.njcn.advance.api.fallback.EventCauseFeignClientFallbackFactory;
import com.njcn.advance.pojo.dto.EventAnalysisDTO;
import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Description:
 * Date: 2025/08/01  上午 8:54【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@FeignClient(value = ServerInfo.ADVANCE_BOOT,path = "/eventAdvance",
        fallbackFactory = EventCauseFeignClientFallbackFactory.class,
        contextId = "eventAdvance" )
public interface EventCauseFeignClient {
     @PostMapping(value = "/analysisCauseAndType")
     HttpResult<EventAnalysisDTO> analysisCauseAndType(@RequestBody EventAnalysisDTO eventAnalysis);
}
