package com.ruoyi.other.api.feignClient;
|
|
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.other.api.domain.TCoupon;
|
import com.ruoyi.other.api.factory.CouponFallbackFactory;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2024/8/16 14:00
|
*/
|
@FeignClient(contextId = "CouponClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = CouponFallbackFactory.class)
|
public interface CouponClient {
|
|
|
/**
|
* 根据id获取优惠券信息
|
* @param id
|
* @return
|
*/
|
@PostMapping("/t-coupon/getCouponById")
|
R<TCoupon> getCouponById(Integer id);
|
}
|