提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.platform; |
F |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
f378c0
|
4 |
import com.hz.his.dto.coupon.*; |
R |
5 |
import com.hz.his.dto.user.coupon.UserCanUseCouponDto; |
|
6 |
import com.hz.his.dto.user.coupon.UserCouponDto; |
ddd881
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
F |
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
|
|
11 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
*/ |
39a067
|
14 |
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-coupon") |
ddd881
|
15 |
public interface SPhipCouponService { |
F |
16 |
|
|
17 |
/** |
|
18 |
* 开放平台-优惠券列表(含指定) |
|
19 |
*/ |
|
20 |
@PostMapping(value = "/coupon/list/all") |
|
21 |
Result getCouponList(@RequestBody CouponDto couponDto); |
|
22 |
|
|
23 |
/** |
|
24 |
* 开放平台-派发优惠券给用户 |
|
25 |
*/ |
|
26 |
@PostMapping(value = "/coupon/send/coupon") |
|
27 |
Result sendUserCoupon(@RequestBody CouponDto couponDto); |
|
28 |
|
|
29 |
/** |
928153
|
30 |
* 开放平台-派发优惠券给用户-金额版本 |
F |
31 |
*/ |
|
32 |
@PostMapping(value = "/coupon/send/coupon/by/money") |
|
33 |
Result sendUserCouponByMoney(@RequestBody CouponSendDto couponSendDto); |
|
34 |
|
|
35 |
/** |
ddd881
|
36 |
* 开放平台-作废优惠券 |
F |
37 |
*/ |
|
38 |
@PostMapping(value = "/coupon/cancel/coupon") |
|
39 |
Result cancelUserCoupon(@RequestBody CouponDto couponDto); |
|
40 |
|
2d39a4
|
41 |
/** |
Z |
42 |
* 开放平台-获取艾心荟优惠券2.0列表 |
|
43 |
* @param dto |
|
44 |
* @return |
|
45 |
*/ |
|
46 |
@PostMapping(value = "/coupon/get/Coupon") |
|
47 |
Result getCoupon(@RequestBody CouponDto dto); |
ddd881
|
48 |
|
f5e3fe
|
49 |
/** |
F |
50 |
* 开放平台-作废用户优惠券 |
|
51 |
*/ |
|
52 |
@PostMapping(value = "/coupon/invalid/user/coupon") |
|
53 |
Result invalidCouponNumber(@RequestBody CouponDto couponDto); |
|
54 |
|
3eda7e
|
55 |
/** |
Z |
56 |
* 开放平台-检查优惠券是否可用 |
|
57 |
*/ |
|
58 |
@PostMapping(value = "/coupon/check/coupon") |
|
59 |
Result checkCoupon(@RequestBody CouponDto couponDto); |
26b23b
|
60 |
|
F |
61 |
/** |
|
62 |
* 开放平台-检查优惠券是否可用 - 开单结账同时执行使用 |
|
63 |
*/ |
|
64 |
@PostMapping(value = "/coupon/check/coupon/to/orderAndPay") |
|
65 |
Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); |
9ae130
|
66 |
|
F |
67 |
/** |
1b0f36
|
68 |
* 开放平台-订单发放优惠券 |
F |
69 |
*/ |
|
70 |
@PostMapping(value = "/coupon/order/send/coupon") |
|
71 |
Result orderSendCoupon(@RequestBody OrderSendCouponDto couponDto); |
9ae130
|
72 |
|
F |
73 |
|
d3af5b
|
74 |
|
R |
75 |
/** |
|
76 |
* 开放平台-校验优惠券是否存在 创建或者更新 |
|
77 |
*/ |
|
78 |
@PostMapping(value = "/coupon/check/create") |
|
79 |
Result couponCheckCreate(@RequestBody CouponAddDto couponAddDto); |
|
80 |
|
|
81 |
/** |
4288fa
|
82 |
* 开放平台- 校验优惠券剩余数量 |
d3af5b
|
83 |
*/ |
4288fa
|
84 |
@PostMapping(value = "/coupon/check/surplus/num") |
R |
85 |
Result checkCouponSurplusNum(@RequestBody CouponDto couponDto); |
d3af5b
|
86 |
|
f378c0
|
87 |
/** |
R |
88 |
* 开放平台- 延期用户优惠券 |
|
89 |
*/ |
|
90 |
@PostMapping(value = "/user/coupon/delay/coupon") |
|
91 |
Result delayUserCoupon(@RequestBody UserDelayCouponDto userDelayCouponDto); |
|
92 |
|
ddd881
|
93 |
} |