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.NewStationClientFallbackFactory;
import com.njcn.device.pq.pojo.po.NewStation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 新能源场站高低电压穿越Feign客户端
 * @author guofeihu
 * @date 2024-08-14
 */
@FeignClient(value = ServerInfo.DEVICE, path = "/newStation", fallbackFactory = NewStationClientFallbackFactory.class, contextId = "newStation")
public interface NewStationClient {

    /**
     * 根据ID获取新能源场站高低电压穿越表信息
     *
     * @return
     */
    @GetMapping("/selectById")
    HttpResult<NewStation> selectById(@RequestParam(name = "id") String id);
}
