| | |
| | | import org.springframework.cloud.openfeign.FallbackFactory; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2024/8/16 13:48 |
| | |
| | | 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()); |
| | | } |
| | | |
| | | @Override |
| | | public R updateCoupon(TCoupon coupon) { |
| | | throw new RuntimeException("修改优惠券失败"); |
| | | } |
| | | }; |
| | | } |
| | | |