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.TractionStationClientFallbackFactory;
import com.njcn.device.pms.pojo.dto.PmsTractionStationDTO;
import com.njcn.device.pms.pojo.param.PmsTractionStationParam;
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/11/8
 */
@FeignClient(
        value = ServerInfo.DEVICE,
        path = "/pms/tractionStation",
        contextId = "pms/tractionStation",
        fallbackFactory = TractionStationClientFallbackFactory.class)
public interface TractionStationClient {

    /**
     * 获取牵引站详细信息
     *
     * @param param 条件参数
     * @return com.njcn.common.pojo.response.HttpResult<java.util.List < com.njcn.device.pms.pojo.dto.PmsTractionStationDTO>>
     * @author yzh
     * @date 2022/11/8
     */
    @PostMapping("/getPmsTractionStationInfo")
    HttpResult<List<PmsTractionStationDTO>> getPmsTractionStationInfo(@RequestBody PmsTractionStationParam param);


}
