提交 | 用户 | 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 |
*/ |
314a4b
|
14 |
@FeignClient(name="phi-platform-user",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); |
1b0f36
|
60 |
|
F |
61 |
/** |
|
62 |
* 开放平台-订单发放优惠券 |
|
63 |
*/ |
|
64 |
@PostMapping(value = "/coupon/order/send/coupon") |
|
65 |
Result orderSendCoupon(@RequestBody OrderSendCouponDto couponDto); |
055d7c
|
66 |
|
F |
67 |
/** |
26b23b
|
68 |
* 开放平台-检查优惠券是否可用 - 开单结账同时执行使用 |
F |
69 |
*/ |
|
70 |
@PostMapping(value = "/coupon/check/coupon/to/orderAndPay") |
|
71 |
Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); |
d3af5b
|
72 |
|
R |
73 |
/** |
|
74 |
* 开放平台-校验优惠券是否存在 创建或者更新 |
|
75 |
*/ |
|
76 |
@PostMapping(value = "/coupon/check/create") |
|
77 |
Result couponCheckCreate(@RequestBody CouponAddDto couponAddDto); |
|
78 |
|
|
79 |
/** |
4288fa
|
80 |
* 开放平台- 校验优惠券剩余数量 |
d3af5b
|
81 |
*/ |
4288fa
|
82 |
@PostMapping(value = "/coupon/check/surplus/num") |
R |
83 |
Result checkCouponSurplusNum(@RequestBody CouponDto couponDto); |
d3af5b
|
84 |
|
f378c0
|
85 |
/** |
R |
86 |
* 开放平台- 延期用户优惠券 |
|
87 |
*/ |
|
88 |
@PostMapping(value = "/user/coupon/delay/coupon") |
|
89 |
Result delayUserCoupon(@RequestBody UserDelayCouponDto userDelayCouponDto); |
|
90 |
|
ddd881
|
91 |
} |