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.LineIntegrityClientFallbackFactory;
import com.njcn.device.biz.pojo.po.PqsDeviceUnit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 数据单位
 * @author cdf
 * @date 2023/6/7
 */
@FeignClient(value = ServerInfo.DEVICE,
        path = "/pq/pqsDeviceUnit",
        fallbackFactory = LineIntegrityClientFallbackFactory.class,
        contextId = "pqsDeviceUnit")
public interface DeviceUnitClient {

    /**
     * @Description: 根据监测点id获取数据单位
     * @param lineID
     * @return: com.njcn.common.pojo.response.HttpResult<com.njcn.device.biz.pojo.po.PqsDeviceUnit>
     * @Author: wr
     * @Date: 2023/8/22 16:21
     */
    @PostMapping("/lineUnitDetail")
    HttpResult<PqsDeviceUnit> lineUnitDetail(@RequestParam("lineID") String lineID) ;
}
