提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.feign.service; |
C |
2 |
|
|
3 |
|
|
4 |
import com.hx.resultTool.Result; |
|
5 |
import com.hz.phis.dt.coupon.CouponDt; |
|
6 |
import com.hz.phis.dt.coupon.CouponGoodsDt; |
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
|
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
import org.springframework.web.bind.annotation.RequestParam; |
|
11 |
|
|
12 |
/** |
|
13 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
14 |
*/ |
|
15 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "coupon") |
|
16 |
public interface SCouponService { |
|
17 |
|
|
18 |
/** |
|
19 |
* 获取优惠券列表(含指定) |
|
20 |
* @return Result |
|
21 |
*/ |
|
22 |
@PostMapping(value = "/coupon/list/appoint") |
|
23 |
Result getListAppoint(@RequestBody CouponDt couponDt); |
|
24 |
|
|
25 |
/** |
|
26 |
* 获取优惠券列表 |
|
27 |
* @return Result |
|
28 |
*/ |
|
29 |
@PostMapping(value = "/coupon/list") |
|
30 |
Result getList(@RequestBody CouponDt couponDt); |
|
31 |
|
|
32 |
|
|
33 |
/** |
|
34 |
* 商品可领取优惠券 |
|
35 |
*/ |
|
36 |
@PostMapping(value = "/goods/receive/coupon") |
|
37 |
Result goodsReceiveCoupon(@RequestBody CouponGoodsDt couponGoodsDt); |
|
38 |
|
|
39 |
|
|
40 |
/** |
|
41 |
* 优惠券详情 |
|
42 |
*/ |
|
43 |
@PostMapping(value = "/coupon/detail") |
|
44 |
Result couponDetail(@RequestParam("couponId") String couponId); |
|
45 |
|
|
46 |
} |