ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/GoodsFallbackFactory.java
@@ -8,6 +8,8 @@ import org.springframework.cloud.openfeign.FallbackFactory; import org.springframework.stereotype.Component; import java.util.List; /** * @author zhibing.pu * @Date 2024/8/16 13:48 @@ -26,6 +28,11 @@ public R<TGoods> getGoodsById(Integer id) { return R.fail("根据id获取商品信息失败:" + throwable.getMessage()); } @Override public R<List<Integer>> getGoodsIdsByName(String name) { return R.fail("根据商品名称获取商品ids失败:" + throwable.getMessage()); } }; }