提交 | 用户 | 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; |
1b0f36
|
5 |
import com.hz.his.dto.coupon.OrderSendCouponDto; |
ddd881
|
6 |
import org.springframework.cloud.openfeign.FeignClient; |
F |
7 |
import org.springframework.web.bind.annotation.PostMapping; |
|
8 |
import org.springframework.web.bind.annotation.RequestBody; |
|
9 |
|
|
10 |
/** |
|
11 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
12 |
*/ |
39a067
|
13 |
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-coupon") |
ddd881
|
14 |
public interface SPhipCouponService { |
F |
15 |
|
|
16 |
/** |
|
17 |
* 开放平台-优惠券列表(含指定) |
|
18 |
*/ |
|
19 |
@PostMapping(value = "/coupon/list/all") |
|
20 |
Result getCouponList(@RequestBody CouponDto couponDto); |
|
21 |
|
|
22 |
/** |
|
23 |
* 开放平台-派发优惠券给用户 |
|
24 |
*/ |
|
25 |
@PostMapping(value = "/coupon/send/coupon") |
|
26 |
Result sendUserCoupon(@RequestBody CouponDto couponDto); |
|
27 |
|
|
28 |
/** |
|
29 |
* 开放平台-作废优惠券 |
|
30 |
*/ |
|
31 |
@PostMapping(value = "/coupon/cancel/coupon") |
|
32 |
Result cancelUserCoupon(@RequestBody CouponDto couponDto); |
|
33 |
|
2d39a4
|
34 |
/** |
Z |
35 |
* 开放平台-获取艾心荟优惠券2.0列表 |
|
36 |
* @param dto |
|
37 |
* @return |
|
38 |
*/ |
|
39 |
@PostMapping(value = "/coupon/get/Coupon") |
|
40 |
Result getCoupon(@RequestBody CouponDto dto); |
ddd881
|
41 |
|
f5e3fe
|
42 |
/** |
F |
43 |
* 开放平台-作废用户优惠券 |
|
44 |
*/ |
|
45 |
@PostMapping(value = "/coupon/invalid/user/coupon") |
|
46 |
Result invalidCouponNumber(@RequestBody CouponDto couponDto); |
|
47 |
|
3eda7e
|
48 |
/** |
Z |
49 |
* 开放平台-检查优惠券是否可用 |
|
50 |
*/ |
|
51 |
@PostMapping(value = "/coupon/check/coupon") |
|
52 |
Result checkCoupon(@RequestBody CouponDto couponDto); |
26b23b
|
53 |
|
F |
54 |
/** |
|
55 |
* 开放平台-检查优惠券是否可用 - 开单结账同时执行使用 |
|
56 |
*/ |
|
57 |
@PostMapping(value = "/coupon/check/coupon/to/orderAndPay") |
|
58 |
Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); |
9ae130
|
59 |
|
F |
60 |
/** |
1b0f36
|
61 |
* 开放平台-订单发放优惠券 |
F |
62 |
*/ |
|
63 |
@PostMapping(value = "/coupon/order/send/coupon") |
|
64 |
Result orderSendCoupon(@RequestBody OrderSendCouponDto couponDto); |
9ae130
|
65 |
|
F |
66 |
|
ddd881
|
67 |
} |