| | |
| | | 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.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | 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 UseUserCouponDto dto); |
| | | @PostMapping("/logan/inner/appUserCoupon/useUserCoupon") |
| | | R<BigDecimal> useUserCoupon(@RequestBody UseUserCouponDto dto); |
| | | |
| | | |
| | | /** |
| | | * 退回用户的优惠卷 |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @PostMapping("/logan/inner/appUserCoupon/backUserCoupon") |
| | | R<BigDecimal> backUserCoupon(@RequestBody UseUserCouponDto dto); |
| | | |
| | | |
| | | @GetMapping("/logan/inner/appUserCoupon/holding") |
| | | boolean isHolding(Long id); |
| | | } |