From 1758414200537ba9eaf7991429c313e214081fe4 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期三, 28 八月 2024 10:41:19 +0800
Subject: [PATCH] 地址
---
ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java
index f5821e7..4937da4 100644
--- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java
+++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java
@@ -10,6 +10,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
@@ -25,9 +27,14 @@
return new CouponClient() {
@Override
- public R<TCoupon> getCouponById(Integer id) {
+ public R<TCoupon> getCouponById1(Integer id) {
return R.fail("根据id获取优惠券信息失败:" + throwable.getMessage());
}
+
+ @Override
+ public R<List<Integer>> getCouponIdsByName(String name) {
+ return R.fail("根据名称查询优惠券ids:" + throwable.getMessage());
+ }
};
}
--
Gitblit v1.7.1