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