提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.platform; |
F |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.coupon.CouponDto; |
928153
|
5 |
import com.hz.his.dto.coupon.CouponSendDto; |
1b0f36
|
6 |
import com.hz.his.dto.coupon.OrderSendCouponDto; |
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); |
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); |
ddd881
|
72 |
} |