package com.njcn.device.pq.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.biz.pojo.po.Overlimit;
import com.njcn.device.pq.api.fallback.LineIntegrityClientFallbackFactory;
import com.njcn.device.pq.api.fallback.OverLimitFallbackFactory;
import com.njcn.device.pq.pojo.po.RStatIntegrityD;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * 监测点数据完整性
 * @author cdf
 * @date 2023/6/7
 */
@FeignClient(value = ServerInfo.DEVICE,
        path = "/overLimit",
        fallbackFactory = OverLimitFallbackFactory.class,contextId = "overLimit")
public interface OverLimitClient {

    /**
     *
     * @author cdf
     * @date 2023/6/7
     */
    @PostMapping("/getOverLimitByLineIds")
    HttpResult<List<Overlimit>> getOverLimitByLineIds(@RequestBody List<String> lineIds);

    /**
     *
     * @author cdf
     * @date 2023/6/7
     */
    @PostMapping("/getLimitMapsByLineIds")
    HttpResult<List<Map<String, Object>>> getLimitMapsByLineIds(@RequestBody List<String> lineIds);
}
