package com.prolog.cs.biz.inbound.remote;

import com.prolog.framework.common.message.RestMessage;
import com.prolog.upcloud.base.strategy.dto.StrategyDTO;
import com.prolog.upcloud.base.strategy.model.BusinessControl;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class StrategyClientFallBack implements StrategyClient {

	@Override
	public RestMessage<StrategyDTO> getStrategyDTO(String enterpriseId, String category, String cargoOwnerId,
			String warehouseId) {
		// TODO Auto-generated method stub
		return RestMessage.doError("远程调用策略失败!请重试");
	}

	@Override
	public RestMessage<List<StrategyDTO>> getStrategyDTO(String enterpriseId, String category, String[] cargoOwnerIds,
			String warehouseId) {
		// TODO Auto-generated method stub
		return RestMessage.doError("远程调用策略失败!请重试");
	}

	@Override
	public RestMessage<BusinessControl> registryByCode(String regCode, String warehouseId, String cargoOwnerId,
			String enterpriseId) {
		// TODO Auto-generated method stub
		return RestMessage.doError("远程调用策略失败!请重试");
	}

	@Override
	public RestMessage<BusinessControl> getControlByCode(String regCode, String warehouseId, String cargoOwnerId,
			String enterpriseId, String bldgId) {
		return RestMessage.doError("远程调用策略失败!请重试");
	}

}
