package com.njcn.event.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pms.pojo.param.MonitorTerminalParam;
import com.njcn.event.api.fallback.TransientFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 暂态事件Feign客户端
 * @author guofeihu
 * @date 2024-08-22
 */
@FeignClient(value = ServerInfo.EVENT,path = "/transient",fallbackFactory = TransientFeignClientFallbackFactory.class)
public interface TransientFeignClient {

    @PostMapping("/getTransientAnalyseWaveToByteArray")
    HttpResult<byte[]> getTransientAnalyseWaveToByteArray(@RequestBody MonitorTerminalParam param);

}
