From 401510af482a05aa777db983791f8e7594edaec2 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 08 七月 2025 13:53:55 +0800
Subject: [PATCH] 新增迭代

---
 ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/factory/GoodsFallbackFactory.java |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/factory/GoodsFallbackFactory.java b/ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/factory/GoodsFallbackFactory.java
index 76f4cfd..626f09e 100644
--- a/ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/factory/GoodsFallbackFactory.java
+++ b/ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/factory/GoodsFallbackFactory.java
@@ -5,10 +5,10 @@
 import com.ruoyi.goods.api.domain.TGoods;
 import com.ruoyi.goods.api.domain.TGoodsType;
 import com.ruoyi.goods.api.feignClient.GoodsClient;
-import com.ruoyi.goods.api.model.GoodsTypeQuery;
-import com.ruoyi.goods.api.model.TGoodsVO;
+import com.ruoyi.goods.api.model.*;
 import org.springframework.cloud.openfeign.FallbackFactory;
 import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.RequestBody;
 
 import java.util.List;
 
@@ -18,6 +18,21 @@
     @Override
     public GoodsClient create(Throwable cause) {
         return new GoodsClient() {
+
+            @Override
+            public R getGoodsInfo1(OrderDTO dto) {
+                return R.fail("确认发货失败" + cause.getMessage());
+            }
+
+            @Override
+            public R<TOrderVO> getOrderInfo(String id) {
+                return R.fail("根据订单id获取订单详情失败" + cause.getMessage());
+            }
+
+            @Override
+            public R<PageInfo<TOrderVO>> listAll1(@RequestBody OrderQuery query) {
+                return R.fail("后台获取订单列表失败" + cause.getMessage());
+            }
 
             @Override
             public R<PageInfo<TGoodsType>> listType(GoodsTypeQuery query) {
@@ -70,7 +85,7 @@
             }
 
             @Override
-            public R<List<TGoodsVO>> goodRecommend(String userId) {
+            public R<List<TGoodsVO>> goodRecommend() {
                 return R.fail("获取商品推荐列表" + cause.getMessage());
             }
         };

--
Gitblit v1.7.1