package com.ruoyi.dataInterchange.api.factory; import com.ruoyi.common.core.domain.R; import com.ruoyi.dataInterchange.api.feignClient.RealVideoMsgClient; import com.ruoyi.dataInterchange.api.vo.UPRealvideoMsgStartupAckVo; import org.springframework.cloud.openfeign.FallbackFactory; /** * @author zhibing.pu * @Date 2025/3/24 16:18 */ public class RealVideoMsgClientFallbackFactory implements FallbackFactory { @Override public RealVideoMsgClient create(Throwable cause) { return new RealVideoMsgClient() { @Override public R startupRealVideo(Integer inferiorPlatformId, String vehicleNo) { return R.fail("发起实时音视频请求失败:" + cause.getMessage()); } }; } }