yyy
2026-04-22 43e9944347e51d5628166f8c1b78d98cfd2013ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.xiaopeng.api.feignClient.operation;
 
 
import com.xiaopeng.api.factory.operation.XpCouponClientFallbackFactory;
import com.xiaopeng.api.model.operation.XpCoupon;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
@FeignClient(contextId = "XpCouponClient", value = ServiceNameConstantsEnum.XP_OPERATION_SERVICE, fallbackFactory = XpCouponClientFallbackFactory.class)
public interface XpCouponClient {
 
    /**
     * 根据优惠券id获取优惠券信息
     * @param couponId
     * @return
     */
    @PostMapping("/logan/inner/xp-coupon/getCouponById")
    R<XpCoupon> getCouponById(@RequestParam Long couponId);
 
 
}