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.AlarmClientFallbackFactory;
import com.njcn.device.pq.pojo.vo.AlarmStrategyVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

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

    /**
     * 获取告警策略列表
     *
     * @return
     */
    @PostMapping("/getAlarmStrategyData")
    HttpResult<List<AlarmStrategyVO>> getAlarmStrategyData();
}
