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