提交 | 用户 | 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 |
/** |
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); |
7c680b
|
83 |
} |