package com.njcn.prepare.harmonic.api.newalgorithm;


import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.prepare.harmonic.api.newalgorithm.fallback.RMpEventDetailFeignClientFallbackFactory;
import com.njcn.prepare.harmonic.pojo.param.LineParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        value = ServerInfo.PREPARE_BOOT,//对应模块名
        path = "/rmpeventdetail",//对应controller请求类
        fallbackFactory = RMpEventDetailFeignClientFallbackFactory.class//服务降级处理类
)
public interface RMpEventDetailFeignClient {

    @PostMapping("/eventdetailHandler")
    @ApiOperation("监测点暂态指标处理")
    HttpResult<String> eventdetailHandler(@RequestBody @Validated LineParam lineParam);
}
