提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.feign.service; |
C |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
f5bce1
|
4 |
import com.hz.his.dto.user.UserAppointmentDto; |
F |
5 |
import com.hz.his.dto.user.UserDto; |
|
6 |
import com.hz.his.dto.user.UserLevelDto; |
|
7 |
import com.hz.his.dto.user.card.UserCardDto; |
|
8 |
import com.hz.his.dto.user.card.UserCardUsedDto; |
|
9 |
import com.hz.his.dto.user.coupon.UserCanUseCouponDto; |
|
10 |
import com.hz.his.dto.user.coupon.UserCouponDto; |
|
11 |
import com.hz.his.dto.user.money.*; |
|
12 |
import com.hz.his.dto.user.label.UserLabelDto; |
|
13 |
import com.hz.his.dto.user.project.UserProjectDto; |
|
14 |
import com.hz.his.dto.user.project.UserProjectUsedDto; |
7c680b
|
15 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
16 |
import org.springframework.web.bind.annotation.PostMapping; |
|
17 |
import org.springframework.web.bind.annotation.RequestBody; |
|
18 |
import org.springframework.web.bind.annotation.RequestParam; |
|
19 |
|
|
20 |
/** |
|
21 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
22 |
*/ |
|
23 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "user") |
|
24 |
public interface SUserService { |
|
25 |
|
|
26 |
/** |
|
27 |
* 获取用户基本信息 |
|
28 |
* @param |
|
29 |
* */ |
|
30 |
@PostMapping(value = "/user/info/basic") |
|
31 |
Result userBasicInfo(@RequestParam("userId") String userId); |
|
32 |
|
|
33 |
/** |
|
34 |
* 获取到用户详情 |
|
35 |
* @param userId 预约用户标识 |
|
36 |
* @return UserDt |
|
37 |
*/ |
|
38 |
@PostMapping(value = "/user/info") |
|
39 |
Result userInfo(@RequestParam("userId") String userId); |
|
40 |
|
|
41 |
/** |
|
42 |
* 获取用户项目 |
|
43 |
*/ |
|
44 |
@PostMapping(value = "/user/project/list") |
f5bce1
|
45 |
Result userProject(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
46 |
|
C |
47 |
/** |
|
48 |
* 获取用户子项目 |
|
49 |
*/ |
|
50 |
@PostMapping(value = "/user/project/item/list") |
f5bce1
|
51 |
Result userProjectItem(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
52 |
|
C |
53 |
/** |
|
54 |
* 获取用户子项目使用记录 |
|
55 |
*/ |
|
56 |
@PostMapping(value = "/user/project/used") |
f5bce1
|
57 |
Result userProjectUsed(@RequestBody UserProjectUsedDto userProjectUsedDto); |
7c680b
|
58 |
|
C |
59 |
|
|
60 |
/** |
|
61 |
* 获取用户卡包 |
|
62 |
*/ |
|
63 |
@PostMapping(value = "/user/card") |
f5bce1
|
64 |
Result userCard(@RequestBody UserCardDto userCardDto); |
7c680b
|
65 |
|
C |
66 |
/** |
|
67 |
* 获取用户卡包使用记录 |
|
68 |
*/ |
|
69 |
@PostMapping(value = "/user/card/used") |
f5bce1
|
70 |
Result userCardUsed(@RequestBody UserCardUsedDto userCardUsedDto); |
7c680b
|
71 |
|
C |
72 |
|
|
73 |
/** |
|
74 |
* 获取用户促销使用记录 |
|
75 |
* @param orderItemNo 子订单号 |
|
76 |
* */ |
|
77 |
@PostMapping(value = "/user/promotion/used") |
|
78 |
Result userPromotionUsed(@RequestParam("orderItemNo") String orderItemNo); |
|
79 |
|
|
80 |
|
|
81 |
/** |
|
82 |
* 获取用户优惠券 |
|
83 |
* */ |
|
84 |
@PostMapping(value = "/user/coupon") |
f5bce1
|
85 |
Result userCoupon(@RequestBody UserCouponDto userCouponDto); |
7c680b
|
86 |
|
C |
87 |
/** |
|
88 |
* 获取用户优惠券使用记录 |
|
89 |
* */ |
|
90 |
@PostMapping(value = "/user/coupon/used") |
f5bce1
|
91 |
Result userCouponUsed(@RequestParam UserCouponDto userCouponDto); |
7c680b
|
92 |
|
C |
93 |
|
|
94 |
/** |
|
95 |
* 获取用户增值金列表 |
|
96 |
* */ |
|
97 |
@PostMapping(value = "/user/increment/list") |
f5bce1
|
98 |
Result userIncrementList(@RequestBody UserIncrementDto userIncrementDto); |
7c680b
|
99 |
|
C |
100 |
/** |
|
101 |
* 获取用户增值金使用记录 |
|
102 |
* */ |
|
103 |
@PostMapping(value = "/user/increment/used") |
f5bce1
|
104 |
Result userIncrementUsed(@RequestBody UserIncrementDto userIncrementDto); |
7c680b
|
105 |
|
C |
106 |
/** |
|
107 |
* 获取用户储值金列表 |
|
108 |
* */ |
|
109 |
@PostMapping(value = "/user/recharge/list") |
f5bce1
|
110 |
Result userRechargeList(@RequestBody UserRechargeDto userRechargeDto); |
7c680b
|
111 |
|
C |
112 |
/** |
34fb19
|
113 |
* 获取用户资金使用记录 |
7c680b
|
114 |
* */ |
34fb19
|
115 |
@PostMapping(value = "/user/money/used") |
f5bce1
|
116 |
Result userConsumeDt(@RequestBody UserConsumeDto userConsumeDto); |
7c680b
|
117 |
|
C |
118 |
/** |
|
119 |
* 获取用户积分列表 |
|
120 |
* */ |
|
121 |
@PostMapping(value = "/user/integral/list") |
f5bce1
|
122 |
Result userIntegralList(@RequestBody UserIntegralDto userIntegralDto); |
7c680b
|
123 |
|
C |
124 |
/** |
|
125 |
* 获取用户积分使用记录 |
|
126 |
* */ |
|
127 |
@PostMapping(value = "/user/integral/used") |
f5bce1
|
128 |
Result userIntegralUsed(@RequestBody UserIntegralDto userIntegralDto); |
7c680b
|
129 |
|
C |
130 |
/** |
|
131 |
* 根据电话号码查询用户信息 |
|
132 |
* @param tel |
|
133 |
* */ |
|
134 |
@PostMapping(value = "/user/info/tel") |
|
135 |
Result findUserInfoByTel(@RequestParam("tel") String tel); |
|
136 |
|
|
137 |
/** |
|
138 |
* 获取用户拥有统计 |
|
139 |
* @param |
|
140 |
* */ |
|
141 |
@PostMapping(value = "/user/have/count") |
|
142 |
Result userHaveCount(@RequestParam("userId") String userId); |
|
143 |
|
|
144 |
/** |
|
145 |
* 获取用户可用优惠券 |
|
146 |
* @param |
|
147 |
* */ |
|
148 |
@PostMapping(value = "/user/can/use/coupon") |
f5bce1
|
149 |
Result userCanUseCoupon(@RequestBody UserCanUseCouponDto userCanUseCouponDto); |
7c680b
|
150 |
|
C |
151 |
/** |
|
152 |
* 根据电话号码或者CIQ获取指定用户 |
|
153 |
* */ |
|
154 |
@PostMapping(value = "/user/info/telOrCiq") |
f5bce1
|
155 |
Result findUserByTelOrCiq(@RequestBody UserDto userDto); |
7c680b
|
156 |
|
C |
157 |
|
|
158 |
/** |
|
159 |
* 获取用户标签 |
|
160 |
* @param |
|
161 |
* */ |
|
162 |
@PostMapping(value = "/user/label") |
f5bce1
|
163 |
Result userLabel(@RequestBody UserLabelDto userLabelDto); |
7c680b
|
164 |
|
C |
165 |
|
|
166 |
/** |
|
167 |
* 获取用户消费数据 |
|
168 |
* @param |
|
169 |
* */ |
|
170 |
@PostMapping(value = "/user/consume/count") |
f5bce1
|
171 |
Result userConsumeCount(@RequestBody UserConsumeDto userConsumeDto); |
7c680b
|
172 |
|
C |
173 |
|
|
174 |
/** |
|
175 |
* 获取用户预约数据 |
|
176 |
* */ |
|
177 |
@PostMapping(value = "/user/appointment/list") |
f5bce1
|
178 |
Result userAppointment(@RequestBody UserAppointmentDto userAppointmentDto); |
7c680b
|
179 |
|
C |
180 |
/** |
|
181 |
* 获取用户划扣记录 |
|
182 |
* */ |
|
183 |
@PostMapping(value = "/user/project/deduction/list") |
f5bce1
|
184 |
Result userProjectDeduction(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
185 |
|
94e364
|
186 |
/** |
F |
187 |
* 获取会员等级变化记录 |
|
188 |
* */ |
|
189 |
@PostMapping(value = "/user/level/record/list") |
f5bce1
|
190 |
Result userLevelRecord(@RequestBody UserLevelDto userLevelDto); |
94e364
|
191 |
|
d139c6
|
192 |
/** |
F |
193 |
* 获取用户待领取增值金列表 |
|
194 |
* */ |
|
195 |
@PostMapping(value = "/user/wait/increment/list") |
f5bce1
|
196 |
Result userWaitIncList(@RequestBody UserWaitIncDto userWaitIncDto); |
d139c6
|
197 |
|
7c680b
|
198 |
} |