童刚
2022-08-03 02e460a52667915cda6c4ebb58488646795c37ec
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
7c680b 2
C 3
4 import com.hx.resultTool.Result;
f5bce1 5 import com.hz.his.dto.coupon.CouponDto;
F 6 import com.hz.his.dto.coupon.CouponGoodsDto;
7c680b 7 import org.springframework.cloud.openfeign.FeignClient;
C 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")
f5bce1 23     Result getListAppoint(@RequestBody CouponDto couponDto);
7c680b 24
C 25     /**
26      * 获取优惠券列表
27      * @return Result
28      */
29     @PostMapping(value = "/coupon/list")
f5bce1 30     Result getList(@RequestBody CouponDto couponDto);
7c680b 31
C 32
33     /**
34      * 商品可领取优惠券
35      */
36     @PostMapping(value = "/goods/receive/coupon")
f5bce1 37     Result goodsReceiveCoupon(@RequestBody CouponGoodsDto couponGoodsDto);
7c680b 38
C 39
40     /**
41      * 优惠券详情
42      */
43     @PostMapping(value = "/coupon/detail")
44     Result couponDetail(@RequestParam("couponId") String couponId);
45
c3c097 46
F 47     /**
48      * 商品可用优惠券
49      */
50     @PostMapping(value = "/goods/canUsed/coupon")
f5bce1 51     Result goodsCanUsedCoupon(@RequestBody CouponGoodsDto couponGoodsDto);
c3c097 52
7c680b 53 }