package com.njcn.device.pq.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pq.api.fallback.CvtRelationFeignClientFallbackFactory;
import com.njcn.device.pq.pojo.dto.CvtHarmonicCorrectionFactorsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 告警管理Feign客户端
 *
 * @author yzh
 * @date 2022/9/19
 */
@FeignClient(value = ServerInfo.DEVICE, path = "/cvtBind", fallbackFactory = CvtRelationFeignClientFallbackFactory.class, contextId = "cvtBind")
public interface CvtRelationFeignClient {

    @PostMapping("queryByLineId")
    HttpResult<CvtHarmonicCorrectionFactorsDTO> queryByLineId(@RequestParam("lineId") String lineId);
}
