From b9522d131e168a92c88f23e2c0a3a2df079926b4 Mon Sep 17 00:00:00 2001
From: zhibing.pu <393733352@qq.com>
Date: 星期一, 19 八月 2024 17:43:43 +0800
Subject: [PATCH] 新增加小程序接口

---
 ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java
index cfb52c2..0070fdc 100644
--- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java
+++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java
@@ -3,8 +3,10 @@
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.ruoyi.account.api.dto.TagListQueryDto;
 import com.ruoyi.account.api.dto.UnitListQueryDto;
+import com.ruoyi.account.api.vo.CouponListVOVO;
 import com.ruoyi.common.core.domain.R;
 import com.ruoyi.other.api.domain.TCompany;
+import com.ruoyi.other.api.domain.TCoupon;
 import com.ruoyi.other.api.domain.TUserTag;
 import com.ruoyi.other.api.feignClient.OtherClient;
 import org.slf4j.Logger;
@@ -27,7 +29,7 @@
 
     @Override
     public OtherClient create(Throwable throwable) {
-        log.error("商品调用失败:{}", throwable.getMessage());
+        log.error("单位用失败:{}", throwable.getMessage());
         return new OtherClient() {
 
             @Override
@@ -44,7 +46,12 @@
             public R unitDelete(Integer id) {
                 return R.fail("删除单位失败:" + throwable.getMessage());
             }
-
+    
+            @Override
+            public R<TCompany> unitDetail(Integer id) {
+                return R.fail("查询单位失败:" + throwable.getMessage());
+            }
+    
             @Override
             public R<Page<TUserTag>> queryTagPage(TagListQueryDto unitListQueryDto) {
                 return R.fail("查询标签:" + throwable.getMessage());
@@ -74,6 +81,16 @@
             public R<Map<Integer, String>> getVipMap(List<Integer> ids) {
                 return R.fail("获取会员map:" + throwable.getMessage());
             }
+
+            @Override
+            public R<List<CouponListVOVO>> getCouponInfoByCouponIds(List<CouponListVOVO> list) {
+                return R.fail("我的优惠券列表获取信息:"+throwable.getMessage());
+            }
+
+            @Override
+            public R<TCoupon> getCouponById(Integer id) {
+                return R.fail("查询优惠卷:"+throwable.getMessage());
+            }
         };
     }
 }

--
Gitblit v1.7.1