package com.njcn.csdevice.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.csdevice.api.fallback.CsOverLimitFallbackFactory;
import com.njcn.device.biz.pojo.po.Overlimit;
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.CS_DEVICE_BOOT,
        path = "/overLimit",
        fallbackFactory = CsOverLimitFallbackFactory.class,contextId = "overLimit")
public interface CsOverLimitClient {

    /**
     *
     * @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);
}
