| | |
| | | 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 |
| | |
| | | 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()); |
| | | } |
| | | }; |
| | | |
| | | |