From 01d6fa48a0de7a21988e89f71721b6b85e53b517 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 06 三月 2025 16:33:53 +0800 Subject: [PATCH] 去掉资讯图片必填限制 --- ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/PromotionFallbackFactory.java | 41 +++++++++++++++++++++++++++++++---------- 1 files changed, 31 insertions(+), 10 deletions(-) diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/PromotionFallbackFactory.java b/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/PromotionFallbackFactory.java index 095a45d..378cdf1 100644 --- a/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/PromotionFallbackFactory.java +++ b/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/PromotionFallbackFactory.java @@ -1,17 +1,13 @@ package com.ruoyi.system.api.factory; import com.ruoyi.common.core.domain.R; -import com.ruoyi.system.api.domain.GoodsSku; +import com.ruoyi.system.api.domain.CouponMember; import com.ruoyi.system.api.domain.PromotionVideo; -import com.ruoyi.system.api.domain.SysUser; -import com.ruoyi.system.api.feignClient.GoodsSkuClient; +import com.ruoyi.system.api.domain.PromotionWishRecommend; +import com.ruoyi.system.api.domain.dto.CouponMemberDTO; import com.ruoyi.system.api.feignClient.PromotionClient; -import com.ruoyi.system.api.model.CompanySysUserReq; -import com.ruoyi.system.api.model.CompanyUserListVo; -import org.springframework.cloud.openfeign.FallbackFactory; -import org.springframework.web.bind.annotation.PathVariable; - import java.util.List; +import org.springframework.cloud.openfeign.FallbackFactory; /** * @author mitao @@ -23,14 +19,39 @@ public PromotionClient create(Throwable cause) { return new PromotionClient(){ @Override - public R<List<PromotionVideo>> getPromotionVideoList() { + public R<List<PromotionVideo>> getPromotionVideoList(String source) { return R.fail("通过视频集合查询用户失败:" + cause.getMessage()); } @Override - public R<PromotionVideo> getPromotionVideoOne(Integer promotionVideoId) { + public R<PromotionVideo> getPromotionVideoOne(Long promotionVideoId, String source) { return R.fail("获取视频信息失败:" + cause.getMessage()); } + @Override + public R<CouponMember> getCouponMember(CouponMemberDTO couponMemberDTO, String source) { + return R.fail("获取会员优惠券信息失败:" + cause.getMessage()); + } + + @Override + public R<?> updCouponMember(CouponMemberDTO couponMemberDTO, String source) { + return R.fail("修改会员优惠券信息失败:" + cause.getMessage()); + } + + @Override + public R<PromotionWishRecommend> getPromotionWishRecommend(Long id, String source) { + return R.fail("获取推荐商品失败:" + cause.getMessage()); + } + + @Override + public R<Integer> subRecommendAvailableNum(Integer goodsQuantity, Long id, + String source) { + return R.fail("扣减推荐商品可购数量失败:" + cause.getMessage()); + } + + @Override + public R<?> addRecommendAvailableNum(Integer goodsQuantity, Long id, String source) { + return R.fail("增加推荐商品可购数量失败:" + cause.getMessage()); + } }; -- Gitblit v1.7.1