提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.phis; |
7c680b
|
2 |
|
C |
3 |
|
|
4 |
import com.hx.resultTool.Result; |
e8dcf5
|
5 |
import com.hz.his.dto.coupon.*; |
c1a94f
|
6 |
import com.hz.his.dto.dictionaries.DictionariesDto; |
W |
7 |
import com.hz.phis.dt.marketingCoupon.MarketingCouponDto; |
7c680b
|
8 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
9 |
import org.springframework.web.bind.annotation.PostMapping; |
|
10 |
import org.springframework.web.bind.annotation.RequestBody; |
|
11 |
import org.springframework.web.bind.annotation.RequestParam; |
|
12 |
|
|
13 |
/** |
|
14 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
15 |
*/ |
|
16 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "coupon") |
|
17 |
public interface SCouponService { |
|
18 |
|
|
19 |
/** |
|
20 |
* 获取优惠券列表 |
|
21 |
* @return Result |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/coupon/list") |
f5bce1
|
24 |
Result getList(@RequestBody CouponDto couponDto); |
7c680b
|
25 |
|
C |
26 |
/** |
e173da
|
27 |
* 获取优惠券列表(含指定,统计人数) |
F |
28 |
* @return Result |
7c680b
|
29 |
*/ |
e173da
|
30 |
@PostMapping(value = "/coupon/list/appoint") |
F |
31 |
Result getListAppoint(@RequestBody CouponDetailDto couponDetailDto); |
7c680b
|
32 |
|
C |
33 |
/** |
|
34 |
* 优惠券详情 |
|
35 |
*/ |
|
36 |
@PostMapping(value = "/coupon/detail") |
|
37 |
Result couponDetail(@RequestParam("couponId") String couponId); |
|
38 |
|
e173da
|
39 |
/** |
42c206
|
40 |
* 用户优惠券详情 |
W |
41 |
*/ |
|
42 |
@PostMapping(value = "/coupon/couponNumberDetail") |
|
43 |
Result couponNumberDetail(@RequestParam("couponNumberId") String couponNumberId); |
|
44 |
|
|
45 |
/** |
e173da
|
46 |
* 优惠券统计 |
F |
47 |
*/ |
|
48 |
@PostMapping(value = "/coupon/count") |
|
49 |
Result couponCount(@RequestParam("couponId") String couponId); |
c3c097
|
50 |
|
F |
51 |
/** |
f5e3fe
|
52 |
* 优惠券使用情况列表 |
c3c097
|
53 |
*/ |
e173da
|
54 |
@PostMapping(value = "/coupon/used/detail") |
F |
55 |
Result couponUsedDetail(@RequestBody CouponListDetailDto couponListDetailDto); |
f148ba
|
56 |
|
W |
57 |
/** |
f5e3fe
|
58 |
* 用户优惠券情况 |
F |
59 |
*/ |
|
60 |
@PostMapping(value = "/coupon/number/detail") |
|
61 |
Result couponNumberDetail(@RequestBody CouponListDetailDto couponListDetailDto); |
|
62 |
|
|
63 |
/** |
f148ba
|
64 |
* 用户是否领取过团购活动优惠券 |
W |
65 |
*/ |
|
66 |
@PostMapping(value = "/check/group/coupon") |
|
67 |
Result checkGroupCoupon(@RequestBody CouponGoodsDto couponGoodsDto); |
|
68 |
|
|
69 |
|
320c90
|
70 |
/** |
W |
71 |
* 根据优惠券id查询关联商品分类 |
|
72 |
*/ |
|
73 |
@PostMapping(value = "/get/coupon/type") |
|
74 |
Result getCouponGoodsTyep(@RequestBody CouponGoodsDto couponGoodsDto); |
|
75 |
|
|
76 |
|
|
77 |
/** |
|
78 |
* 根据优惠券id统计关联商品 |
|
79 |
*/ |
|
80 |
@PostMapping(value = "/get/coupon/goods") |
|
81 |
Result getCouponGoods(@RequestBody CouponGoodsDto couponGoodsDto); |
6a70cd
|
82 |
|
W |
83 |
/** |
|
84 |
* 获取优惠券列表(不分页) |
|
85 |
* @return Result |
|
86 |
*/ |
|
87 |
@PostMapping(value = "/getCouponList") |
|
88 |
Result getCouponList(@RequestBody CouponDto couponDto); |
f49437
|
89 |
|
W |
90 |
/** |
|
91 |
* 查询优惠券码详情(不分页) |
|
92 |
* @return Result |
|
93 |
*/ |
|
94 |
@PostMapping(value = "/getCouponNumber") |
|
95 |
Result getCouponNumber(@RequestBody CouponDto couponDto); |
c1a94f
|
96 |
|
W |
97 |
/** |
|
98 |
* 查询用户领取营销优惠券数据 |
|
99 |
*/ |
|
100 |
@PostMapping(value = "/marketing/data") |
|
101 |
Result marketingData(@RequestBody(required = false) MarketingCouponDto marketingCouponDto); |
e8dcf5
|
102 |
|
F |
103 |
|
|
104 |
/** |
|
105 |
* 优惠券统一校验接口 |
|
106 |
*/ |
|
107 |
@PostMapping(value = "/coupon/unify/check") |
|
108 |
Result unifyCheck(@RequestBody(required = false) CouponCheckDto couponCheckDto); |
bea795
|
109 |
|
F |
110 |
/** |
|
111 |
* 用户-可用优惠券列表-统一校验版本 |
|
112 |
* @return canUseCouponList可用券列表 canUseCount可用券数量 |
|
113 |
* */ |
|
114 |
@PostMapping(value = "/coupon/user/unify/check/list") |
|
115 |
Result userCouponCheckList(@RequestBody(required = false) CouponListDto couponListDto); |
7c680b
|
116 |
} |