提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.phis; |
7c680b
|
2 |
|
C |
3 |
|
|
4 |
import com.hx.resultTool.Result; |
e173da
|
5 |
import com.hz.his.dto.coupon.CouponDetailDto; |
f5bce1
|
6 |
import com.hz.his.dto.coupon.CouponDto; |
F |
7 |
import com.hz.his.dto.coupon.CouponGoodsDto; |
e173da
|
8 |
import com.hz.his.dto.coupon.CouponListDetailDto; |
7c680b
|
9 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
10 |
import org.springframework.web.bind.annotation.PostMapping; |
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 |
import org.springframework.web.bind.annotation.RequestParam; |
|
13 |
|
|
14 |
/** |
|
15 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
16 |
*/ |
|
17 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "coupon") |
|
18 |
public interface SCouponService { |
|
19 |
|
|
20 |
/** |
|
21 |
* 获取优惠券列表 |
|
22 |
* @return Result |
|
23 |
*/ |
|
24 |
@PostMapping(value = "/coupon/list") |
f5bce1
|
25 |
Result getList(@RequestBody CouponDto couponDto); |
7c680b
|
26 |
|
C |
27 |
/** |
e173da
|
28 |
* 获取优惠券列表(含指定,统计人数) |
F |
29 |
* @return Result |
7c680b
|
30 |
*/ |
e173da
|
31 |
@PostMapping(value = "/coupon/list/appoint") |
F |
32 |
Result getListAppoint(@RequestBody CouponDetailDto couponDetailDto); |
7c680b
|
33 |
|
C |
34 |
/** |
|
35 |
* 优惠券详情 |
|
36 |
*/ |
|
37 |
@PostMapping(value = "/coupon/detail") |
|
38 |
Result couponDetail(@RequestParam("couponId") String couponId); |
|
39 |
|
e173da
|
40 |
/** |
F |
41 |
* 优惠券统计 |
|
42 |
*/ |
|
43 |
@PostMapping(value = "/coupon/count") |
|
44 |
Result couponCount(@RequestParam("couponId") String couponId); |
c3c097
|
45 |
|
F |
46 |
/** |
e173da
|
47 |
* 优惠券使用情况 |
c3c097
|
48 |
*/ |
e173da
|
49 |
@PostMapping(value = "/coupon/used/detail") |
F |
50 |
Result couponUsedDetail(@RequestBody CouponListDetailDto couponListDetailDto); |
f148ba
|
51 |
|
W |
52 |
/** |
|
53 |
* 用户是否领取过团购活动优惠券 |
|
54 |
*/ |
|
55 |
@PostMapping(value = "/check/group/coupon") |
|
56 |
Result checkGroupCoupon(@RequestBody CouponGoodsDto couponGoodsDto); |
|
57 |
|
|
58 |
|
7c680b
|
59 |
} |