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