package com.njcn.advance.api;

import com.njcn.advance.api.fallback.EventWaveAnalysisFeignClientFallbackFactory;
import com.njcn.advance.pojo.dto.waveAnalysis.EntityAdvancedData;
import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.enums.common.LogEnum;
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.common.utils.HttpResultUtil;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author wr
 */
@FeignClient(value = ServerInfo.ADVANCE_BOOT,path = "/waveAnalysis",
        fallbackFactory = EventWaveAnalysisFeignClientFallbackFactory.class,
        contextId = "waveAnalysis" )
public interface EventWaveAnalysisFeignClient {


   /**
    * 波形高级分析
    * @param eventIndex 事件索引
    * @return com.njcn.common.pojo.response.HttpResult<com.njcn.advance.pojo.dto.waveAnalysis.EntityAdvancedData>
    * @Author: wr
    * @Date: 2023/11/1 14:23
    */
    @PostMapping("analysis")
    HttpResult<EntityAdvancedData> analysis(@RequestParam("eventIndex") String eventIndex);

    @PostMapping("analysisWlEvent")
    HttpResult<EntityAdvancedData> analysisWlEvent(@RequestParam("eventIndex") String eventIndex);
}
