package com.hdkj.lt.feign;

import com.hdkj.lt.base.constants.SystemGlobalConstant;
import com.hdkj.lt.modle.dto.psrdevice.JoinEcTransformerDTO;
import com.hdkj.lt.modle.po.JoinEcTransformerPO;
import com.hdkj.lt.feign.fallback.PsrDeviceApiClientFallBack;
import com.hdkj.lt.modle.dto.psrdevice.PsrDeviceQueryDTO;
import com.hdkj.lt.modle.vo.psrdevice.PsrDeviceResponseVO;
import com.hdkj.hussar.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @Description
 * @Author wcx
 * @Date 2025/6/3 10:12
 * @Version 1.0
 */
@FeignClient(value = SystemGlobalConstant.SERVICE_NAME_LOAD_TRANSFER_SI,contextId = "IPsrDeviceApiClient", fallbackFactory = PsrDeviceApiClientFallBack.class)
public interface IPsrDeviceApiClient {
    // 获取异动线路信息
    String API_SERVICE_DEVICE_COMMON_GET = "feign/getPsrDeviceByCommonInterface";
    // 获取文件流信息
    String API_SERVICE_JOINEC_TRANSFORMER_GET = "feign/getJoinEcTransformerInfo";

    @PostMapping(API_SERVICE_DEVICE_COMMON_GET)
    ApiResponse<PsrDeviceResponseVO> getPsrDeviceByCommonInterface(PsrDeviceQueryDTO psrDeviceQuery);

    @PostMapping(API_SERVICE_JOINEC_TRANSFORMER_GET)
    ApiResponse<List<JoinEcTransformerPO>> getJoinEcTransformerInfo(JoinEcTransformerDTO joinEcTransformer);

}
