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