package com.xiaopeng.api.factory.maintenance; import com.xiaopeng.api.feignClient.maintenance.XpVehiclePreparationClient; import lombok.extern.slf4j.Slf4j; import org.springframework.cloud.openfeign.FallbackFactory; import org.springframework.stereotype.Component; /** * 车辆整备Feign客户端降级工厂 * * @author mitao * @since 2026-02-11 */ @Slf4j @Component public class XpVehiclePreparationClientFallbackFactory implements FallbackFactory { @Override public XpVehiclePreparationClient create(Throwable cause) { log.error("车辆整备服务调用失败: {}", cause.getMessage()); return new XpVehiclePreparationClient() { }; } }