From 1cc8d819402db6729edcd2cf0349ae8ab1a84ce0 Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期一, 12 八月 2024 16:15:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/fhx-base-预约整合0808' into master-xlk --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java | 32 +++++++++++++++++++++++++++++--- 1 files changed, 29 insertions(+), 3 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 0c30dc8..3c613ac 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 @@ -1,8 +1,9 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; -import com.hz.his.dto.coupon.CouponDto; -import com.hz.his.dto.coupon.OrderSendCouponDto; +import com.hz.his.dto.coupon.*; +import com.hz.his.dto.user.coupon.UserCanUseCouponDto; +import com.hz.his.dto.user.coupon.UserCouponDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -10,7 +11,7 @@ /** * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� */ -@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-coupon") +@FeignClient(name="phi-platform-user",path = "/phip",contextId = "phip-coupon") public interface SPhipCouponService { /** @@ -24,6 +25,12 @@ */ @PostMapping(value = "/coupon/send/coupon") Result sendUserCoupon(@RequestBody CouponDto couponDto); + + /** + * 寮�鏀惧钩鍙�-娲惧彂浼樻儬鍒哥粰鐢ㄦ埛-閲戦鐗堟湰 + */ + @PostMapping(value = "/coupon/send/coupon/by/money") + Result sendUserCouponByMoney(@RequestBody CouponSendDto couponSendDto); /** * 寮�鏀惧钩鍙�-浣滃簾浼樻儬鍒� @@ -62,4 +69,23 @@ */ @PostMapping(value = "/coupon/check/coupon/to/orderAndPay") Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); + + /** + * 寮�鏀惧钩鍙�-鏍¢獙浼樻儬鍒告槸鍚﹀瓨鍦� 鍒涘缓鎴栬�呮洿鏂� + */ + @PostMapping(value = "/coupon/check/create") + Result couponCheckCreate(@RequestBody CouponAddDto couponAddDto); + + /** + * 寮�鏀惧钩鍙�- 鏍¢獙浼樻儬鍒稿墿浣欐暟閲� + */ + @PostMapping(value = "/coupon/check/surplus/num") + Result checkCouponSurplusNum(@RequestBody CouponDto couponDto); + + /** + * 寮�鏀惧钩鍙�- 寤舵湡鐢ㄦ埛浼樻儬鍒� + */ + @PostMapping(value = "/user/coupon/delay/coupon") + Result delayUserCoupon(@RequestBody UserDelayCouponDto userDelayCouponDto); + } \ No newline at end of file -- Gitblit v1.8.0