提交 | 用户 | 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; |
27e224
|
7 |
import com.hz.his.dto.user.coupon.GoodsUsedCouponDto; |
c1a94f
|
8 |
import com.hz.phis.dt.marketingCoupon.MarketingCouponDto; |
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 |
/** |
42c206
|
41 |
* 用户优惠券详情 |
W |
42 |
*/ |
|
43 |
@PostMapping(value = "/coupon/couponNumberDetail") |
|
44 |
Result couponNumberDetail(@RequestParam("couponNumberId") String couponNumberId); |
|
45 |
|
|
46 |
/** |
e173da
|
47 |
* 优惠券统计 |
F |
48 |
*/ |
|
49 |
@PostMapping(value = "/coupon/count") |
|
50 |
Result couponCount(@RequestParam("couponId") String couponId); |
c3c097
|
51 |
|
F |
52 |
/** |
f5e3fe
|
53 |
* 优惠券使用情况列表 |
c3c097
|
54 |
*/ |
e173da
|
55 |
@PostMapping(value = "/coupon/used/detail") |
F |
56 |
Result couponUsedDetail(@RequestBody CouponListDetailDto couponListDetailDto); |
f148ba
|
57 |
|
W |
58 |
/** |
f5e3fe
|
59 |
* 用户优惠券情况 |
F |
60 |
*/ |
|
61 |
@PostMapping(value = "/coupon/number/detail") |
|
62 |
Result couponNumberDetail(@RequestBody CouponListDetailDto couponListDetailDto); |
|
63 |
|
|
64 |
/** |
f148ba
|
65 |
* 用户是否领取过团购活动优惠券 |
W |
66 |
*/ |
|
67 |
@PostMapping(value = "/check/group/coupon") |
|
68 |
Result checkGroupCoupon(@RequestBody CouponGoodsDto couponGoodsDto); |
|
69 |
|
|
70 |
|
320c90
|
71 |
/** |
W |
72 |
* 根据优惠券id查询关联商品分类 |
|
73 |
*/ |
|
74 |
@PostMapping(value = "/get/coupon/type") |
|
75 |
Result getCouponGoodsTyep(@RequestBody CouponGoodsDto couponGoodsDto); |
|
76 |
|
|
77 |
|
|
78 |
/** |
|
79 |
* 根据优惠券id统计关联商品 |
|
80 |
*/ |
|
81 |
@PostMapping(value = "/get/coupon/goods") |
|
82 |
Result getCouponGoods(@RequestBody CouponGoodsDto couponGoodsDto); |
6a70cd
|
83 |
|
W |
84 |
/** |
|
85 |
* 获取优惠券列表(不分页) |
|
86 |
* @return Result |
|
87 |
*/ |
|
88 |
@PostMapping(value = "/getCouponList") |
|
89 |
Result getCouponList(@RequestBody CouponDto couponDto); |
f49437
|
90 |
|
W |
91 |
/** |
|
92 |
* 查询优惠券码详情(不分页) |
|
93 |
* @return Result |
|
94 |
*/ |
|
95 |
@PostMapping(value = "/getCouponNumber") |
|
96 |
Result getCouponNumber(@RequestBody CouponDto couponDto); |
c1a94f
|
97 |
|
W |
98 |
/** |
|
99 |
* 查询用户领取营销优惠券数据 |
|
100 |
*/ |
|
101 |
@PostMapping(value = "/marketing/data") |
|
102 |
Result marketingData(@RequestBody(required = false) MarketingCouponDto marketingCouponDto); |
e8dcf5
|
103 |
|
F |
104 |
|
|
105 |
/** |
|
106 |
* 优惠券统一校验接口 |
|
107 |
*/ |
|
108 |
@PostMapping(value = "/coupon/unify/check") |
|
109 |
Result unifyCheck(@RequestBody(required = false) CouponCheckDto couponCheckDto); |
bea795
|
110 |
|
F |
111 |
/** |
|
112 |
* 用户-可用优惠券列表-统一校验版本 |
|
113 |
* @return canUseCouponList可用券列表 canUseCount可用券数量 |
|
114 |
* */ |
|
115 |
@PostMapping(value = "/coupon/user/unify/check/list") |
|
116 |
Result userCouponCheckList(@RequestBody(required = false) CouponListDto couponListDto); |
27e224
|
117 |
|
W |
118 |
/** |
65b575
|
119 |
* 用户-升单订单的原使用优惠券列表 |
F |
120 |
* @return canUseCouponList可用券列表 canUseCount可用券数量 |
|
121 |
* */ |
|
122 |
@PostMapping(value = "/coupon/user/riseOrderOriCouponList") |
|
123 |
Result riseOrderOriCouponList(@RequestBody(required = false) CouponListDto couponListDto); |
|
124 |
|
|
125 |
/** |
39bc42
|
126 |
* 根据skuid查询关联优惠券 |
27e224
|
127 |
*/ |
W |
128 |
@PostMapping(value = "/coupon/find/skuId") |
|
129 |
Result findGoodsSkuIdCoupon(@RequestBody(required = false) GoodsUsedCouponDto dto); |
39bc42
|
130 |
|
W |
131 |
/*下单校验优惠券是否可用*/ |
|
132 |
@PostMapping(value = "/coupon/order/check") |
|
133 |
Result orderCheck(@RequestBody(required = false) CouponListDto couponListDto); |
1bab83
|
134 |
|
W |
135 |
/** |
|
136 |
* 查看商品详情用户可用优惠券 |
|
137 |
*/ |
|
138 |
@PostMapping(value = "/coupon/user/goods") |
|
139 |
Result findUserGoodsCoupon(@RequestBody(required = false) GoodsUsedCouponDto dto); |
e3fd51
|
140 |
|
R |
141 |
/** |
646ece
|
142 |
* 查询基础分类 |
e3fd51
|
143 |
*/ |
R |
144 |
@PostMapping(value = "/coupon/type/list") |
|
145 |
Result getCouponTypeList(@RequestBody(required = false) CouponDto dto); |
|
146 |
|
646ece
|
147 |
/** |
F |
148 |
* 查询优惠券分类 |
|
149 |
*/ |
|
150 |
@PostMapping(value = "/couponType/list") |
|
151 |
Result couponTypeList(@RequestBody(required = false) CouponTypeDto couponTypeDto); |
d3af5b
|
152 |
|
R |
153 |
|
7c680b
|
154 |
} |