From 9ae1308afe817d5d7a49d58fb24f9fb51c485f9d Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期四, 29 六月 2023 16:44:28 +0800 Subject: [PATCH] Merge branch 'fhx-prod-兑换优惠券' into master-test --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java index 0788af5..9364e5f 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java @@ -2,6 +2,7 @@ import com.hx.resultTool.Result; import com.hz.his.dto.coupon.CouponDto; +import com.hz.his.dto.coupon.OrderSendCouponDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -9,7 +10,7 @@ /** * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� */ -@FeignClient(name="phi-platfrom-service",path = "/phip",contextId = "phip-coupon") +@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-coupon") public interface SPhipCouponService { /** @@ -38,4 +39,29 @@ @PostMapping(value = "/coupon/get/Coupon") Result getCoupon(@RequestBody CouponDto dto); + /** + * 寮�鏀惧钩鍙�-浣滃簾鐢ㄦ埛浼樻儬鍒� + */ + @PostMapping(value = "/coupon/invalid/user/coupon") + Result invalidCouponNumber(@RequestBody CouponDto couponDto); + + /** + * 寮�鏀惧钩鍙�-妫�鏌ヤ紭鎯犲埜鏄惁鍙敤 + */ + @PostMapping(value = "/coupon/check/coupon") + Result checkCoupon(@RequestBody CouponDto couponDto); + + /** + * 寮�鏀惧钩鍙�-妫�鏌ヤ紭鎯犲埜鏄惁鍙敤 - 寮�鍗曠粨璐﹀悓鏃舵墽琛屼娇鐢� + */ + @PostMapping(value = "/coupon/check/coupon/to/orderAndPay") + Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); + + /** + * 寮�鏀惧钩鍙�-璁㈠崟鍙戞斁浼樻儬鍒� + */ + @PostMapping(value = "/coupon/order/send/coupon") + Result orderSendCoupon(@RequestBody OrderSendCouponDto couponDto); + + } \ No newline at end of file -- Gitblit v1.8.0