From 349705027c1f249c40f161b723af782a143f4b65 Mon Sep 17 00:00:00 2001 From: dongtiandexue Date: Tue, 13 Jul 2021 23:20:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BC=98=E6=83=A0=E5=88=B8=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E4=B8=9A=E5=8A=A1=E4=BB=A3=E7=A0=81=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sms/api/app/CouponRecordFeignService.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mall-sms/sms-api/src/main/java/com/youlai/mall/sms/api/app/CouponRecordFeignService.java diff --git a/mall-sms/sms-api/src/main/java/com/youlai/mall/sms/api/app/CouponRecordFeignService.java b/mall-sms/sms-api/src/main/java/com/youlai/mall/sms/api/app/CouponRecordFeignService.java new file mode 100644 index 000000000..30394e6d4 --- /dev/null +++ b/mall-sms/sms-api/src/main/java/com/youlai/mall/sms/api/app/CouponRecordFeignService.java @@ -0,0 +1,32 @@ +package com.youlai.mall.sms.api.app; + +import com.youlai.common.result.Result; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestParam; + +/** + * @author huawei + * @desc 优惠券领券记录APP端Feign接口 + * @email huawei_code@163.com + * @date 2021/3/17 + */ +@FeignClient(value = "mall-sms") +public interface CouponRecordFeignService { + + @GetMapping("/api.app/v1/coupon_record/list") + Result list(); + + @GetMapping("/api.app/v1/coupon_record/{id}/detail") + Result detail(@PathVariable("id") String id); + + @PostMapping("/api.app/v1/coupon_record") + Result add(@RequestParam("couponId") String couponId); + + @PostMapping("/api.app/v1/coupon_record/push") + Result add(@RequestParam("couponType") Integer couponType, + @RequestParam("userId") Long userId); + +}