package com.njcn.device.pms.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pms.api.fallback.LineIntegrityDataFallbackFactory;
import com.njcn.device.pms.pojo.param.DataQualityDetailsParam;
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;

/**
 * @author yzh
 * @date 2022/10/18
 */
@FeignClient(
        value = ServerInfo.DEVICE,
        path = "/monitorIntegrity",
        contextId = "monitorIntegrity",
        fallbackFactory = LineIntegrityDataFallbackFactory.class)
public interface LineIntegrityDataClient {

    /**
     * 获取监测点数据完整率
     * @param param
     * @return
     */
    @PostMapping("/getIntegrityData")
    HttpResult<List<RStatIntegrityD>> getIntegrityData(@RequestBody DataQualityDetailsParam param);

}
