| | |
| | | package com.xiaopeng.api.feignClient.account; |
| | | |
| | | import com.xiaopeng.api.dto.account.GetUserCouponDto; |
| | | import com.xiaopeng.api.dto.account.UseUserCouponDto; |
| | | import com.xiaopeng.api.factory.account.XpAppUserCouponClientFallbackFactory; |
| | | import com.xiaopeng.api.vo.account.UserCouponVo; |
| | | import com.xiaopeng.common.core.domain.R; |
| | |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * 小程序用户Feign客户端 |
| | |
| | | public interface XpAppUserCouponClient { |
| | | |
| | | |
| | | @PostMapping("/inner/appUserCoupon/getUserCoupon") |
| | | @PostMapping("/logan/inner/appUserCoupon/getUserCoupon") |
| | | R<UserCouponVo> getUserCoupon(@RequestBody GetUserCouponDto dto); |
| | | @PostMapping("/inner/appUserCoupon/useUserCoupon") |
| | | R useUserCoupon(@RequestBody GetUserCouponDto dto); |
| | | @PostMapping("/logan/inner/appUserCoupon/useUserCoupon") |
| | | R<BigDecimal> useUserCoupon(@RequestBody UseUserCouponDto dto); |
| | | |
| | | |
| | | } |