提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.phis; |
7c680b
|
2 |
|
C |
3 |
import com.hx.resultTool.Result; |
f5bce1
|
4 |
import com.hz.his.dto.user.UserAppointmentDto; |
F |
5 |
import com.hz.his.dto.user.UserDto; |
a795ef
|
6 |
import com.hz.his.dto.user.UserIdsDto; |
f5bce1
|
7 |
import com.hz.his.dto.user.UserLevelDto; |
F |
8 |
import com.hz.his.dto.user.card.UserCardDto; |
|
9 |
import com.hz.his.dto.user.card.UserCardUsedDto; |
4b7183
|
10 |
import com.hz.his.dto.user.coupon.GoodsCanUseCouponDto; |
50a746
|
11 |
import com.hz.his.dto.user.coupon.OrderCanUseCouponDto; |
f5bce1
|
12 |
import com.hz.his.dto.user.coupon.UserCanUseCouponDto; |
F |
13 |
import com.hz.his.dto.user.coupon.UserCouponDto; |
|
14 |
import com.hz.his.dto.user.money.*; |
|
15 |
import com.hz.his.dto.user.label.UserLabelDto; |
a795ef
|
16 |
import com.hz.his.dto.user.packages.UserPackageDto; |
F |
17 |
import com.hz.his.dto.user.packages.UserPhisPackageDto; |
f5bce1
|
18 |
import com.hz.his.dto.user.project.UserProjectDto; |
F |
19 |
import com.hz.his.dto.user.project.UserProjectUsedDto; |
60bd8c
|
20 |
import com.hz.his.dto.user.promotion.UserPromotionUsedDto; |
7c680b
|
21 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
22 |
import org.springframework.web.bind.annotation.PostMapping; |
|
23 |
import org.springframework.web.bind.annotation.RequestBody; |
|
24 |
import org.springframework.web.bind.annotation.RequestParam; |
|
25 |
|
|
26 |
/** |
|
27 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
28 |
*/ |
|
29 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "user") |
|
30 |
public interface SUserService { |
|
31 |
|
|
32 |
/** |
deb9ce
|
33 |
* 查询用户列表 |
7c680b
|
34 |
* */ |
deb9ce
|
35 |
@PostMapping(value = "/user/list") |
F |
36 |
Result userList(@RequestBody UserDto userDto); |
7c680b
|
37 |
|
C |
38 |
/** |
|
39 |
* 获取到用户详情 |
deb9ce
|
40 |
* @param userId 用户标识 |
74caeb
|
41 |
* @return 转化使用UserDt |
7c680b
|
42 |
*/ |
C |
43 |
@PostMapping(value = "/user/info") |
|
44 |
Result userInfo(@RequestParam("userId") String userId); |
74caeb
|
45 |
|
C |
46 |
/** |
deb9ce
|
47 |
* 获取用户资金信息 |
74caeb
|
48 |
* */ |
deb9ce
|
49 |
@PostMapping(value = "/user/money/info") |
F |
50 |
Result userMoneyInfo(@RequestParam("userId") String userId); |
7c680b
|
51 |
|
C |
52 |
/** |
|
53 |
* 获取用户项目 |
|
54 |
*/ |
|
55 |
@PostMapping(value = "/user/project/list") |
f5bce1
|
56 |
Result userProject(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
57 |
|
C |
58 |
/** |
|
59 |
* 获取用户子项目 |
|
60 |
*/ |
|
61 |
@PostMapping(value = "/user/project/item/list") |
f5bce1
|
62 |
Result userProjectItem(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
63 |
|
C |
64 |
/** |
|
65 |
* 获取用户子项目使用记录 |
|
66 |
*/ |
|
67 |
@PostMapping(value = "/user/project/used") |
f5bce1
|
68 |
Result userProjectUsed(@RequestBody UserProjectUsedDto userProjectUsedDto); |
7c680b
|
69 |
|
C |
70 |
|
|
71 |
/** |
|
72 |
* 获取用户卡包 |
|
73 |
*/ |
|
74 |
@PostMapping(value = "/user/card") |
f5bce1
|
75 |
Result userCard(@RequestBody UserCardDto userCardDto); |
7c680b
|
76 |
|
863ca8
|
77 |
|
F |
78 |
/** |
|
79 |
* 获取用户的卡项的详情 |
|
80 |
* @param cardId 卡包标识 |
|
81 |
* @return Result |
|
82 |
*/ |
|
83 |
@PostMapping(value = "/userCard/detail") |
|
84 |
Result getUserCardDetail(@RequestParam("cardId") String cardId); |
|
85 |
|
7c680b
|
86 |
/** |
C |
87 |
* 获取用户卡包使用记录 |
|
88 |
*/ |
|
89 |
@PostMapping(value = "/user/card/used") |
f5bce1
|
90 |
Result userCardUsed(@RequestBody UserCardUsedDto userCardUsedDto); |
7c680b
|
91 |
|
C |
92 |
|
|
93 |
/** |
|
94 |
* 获取用户促销使用记录 |
|
95 |
* */ |
|
96 |
@PostMapping(value = "/user/promotion/used") |
60bd8c
|
97 |
Result userPromotionUsed(@RequestBody UserPromotionUsedDto userPromotionUsedDto); |
7c680b
|
98 |
|
C |
99 |
|
|
100 |
/** |
|
101 |
* 获取用户优惠券 |
|
102 |
* */ |
|
103 |
@PostMapping(value = "/user/coupon") |
f5bce1
|
104 |
Result userCoupon(@RequestBody UserCouponDto userCouponDto); |
7c680b
|
105 |
|
C |
106 |
/** |
|
107 |
* 获取用户优惠券使用记录 |
|
108 |
* */ |
|
109 |
@PostMapping(value = "/user/coupon/used") |
f5bce1
|
110 |
Result userCouponUsed(@RequestParam UserCouponDto userCouponDto); |
7c680b
|
111 |
|
C |
112 |
|
|
113 |
/** |
deb9ce
|
114 |
* 获取用户可用优惠券 |
F |
115 |
* */ |
|
116 |
@PostMapping(value = "/user/can/use/coupon") |
|
117 |
Result userCanUseCoupon(@RequestBody UserCanUseCouponDto userCanUseCouponDto); |
|
118 |
|
50a746
|
119 |
/** |
4b7183
|
120 |
* 获取商品可用优惠券 |
W |
121 |
* */ |
|
122 |
@PostMapping(value = "/goods/can/use/coupon") |
|
123 |
Result goodsCanUseCoupon(@RequestBody GoodsCanUseCouponDto goodsCanUseCouponDto); |
|
124 |
|
|
125 |
/** |
50a746
|
126 |
* 判断订单是否可用该优惠券 |
W |
127 |
*/ |
|
128 |
@PostMapping(value = "/order/can/use/coupon") |
|
129 |
Result orderCanUseCoupon(@RequestBody OrderCanUseCouponDto orderCanUseCouponDto); |
|
130 |
|
deb9ce
|
131 |
|
F |
132 |
/** |
7c680b
|
133 |
* 获取用户增值金列表 |
C |
134 |
* */ |
|
135 |
@PostMapping(value = "/user/increment/list") |
f5bce1
|
136 |
Result userIncrementList(@RequestBody UserIncrementDto userIncrementDto); |
7c680b
|
137 |
|
C |
138 |
/** |
|
139 |
* 获取用户增值金使用记录 |
|
140 |
* */ |
|
141 |
@PostMapping(value = "/user/increment/used") |
f5bce1
|
142 |
Result userIncrementUsed(@RequestBody UserIncrementDto userIncrementDto); |
7c680b
|
143 |
|
C |
144 |
/** |
|
145 |
* 获取用户储值金列表 |
|
146 |
* */ |
|
147 |
@PostMapping(value = "/user/recharge/list") |
f5bce1
|
148 |
Result userRechargeList(@RequestBody UserRechargeDto userRechargeDto); |
7c680b
|
149 |
|
C |
150 |
/** |
34fb19
|
151 |
* 获取用户资金使用记录 |
7c680b
|
152 |
* */ |
34fb19
|
153 |
@PostMapping(value = "/user/money/used") |
f5bce1
|
154 |
Result userConsumeDt(@RequestBody UserConsumeDto userConsumeDto); |
7c680b
|
155 |
|
C |
156 |
/** |
|
157 |
* 获取用户积分列表 |
|
158 |
* */ |
|
159 |
@PostMapping(value = "/user/integral/list") |
f5bce1
|
160 |
Result userIntegralList(@RequestBody UserIntegralDto userIntegralDto); |
7c680b
|
161 |
|
C |
162 |
/** |
|
163 |
* 获取用户积分使用记录 |
|
164 |
* */ |
|
165 |
@PostMapping(value = "/user/integral/used") |
f5bce1
|
166 |
Result userIntegralUsed(@RequestBody UserIntegralDto userIntegralDto); |
7c680b
|
167 |
|
C |
168 |
|
|
169 |
/** |
|
170 |
* 获取用户拥有统计 |
|
171 |
* */ |
|
172 |
@PostMapping(value = "/user/have/count") |
|
173 |
Result userHaveCount(@RequestParam("userId") String userId); |
|
174 |
|
|
175 |
|
|
176 |
/** |
|
177 |
* 获取用户标签 |
|
178 |
* @param |
|
179 |
* */ |
|
180 |
@PostMapping(value = "/user/label") |
f5bce1
|
181 |
Result userLabel(@RequestBody UserLabelDto userLabelDto); |
7c680b
|
182 |
|
C |
183 |
|
|
184 |
/** |
|
185 |
* 获取用户消费数据 |
|
186 |
* */ |
|
187 |
@PostMapping(value = "/user/consume/count") |
f5bce1
|
188 |
Result userConsumeCount(@RequestBody UserConsumeDto userConsumeDto); |
7c680b
|
189 |
|
C |
190 |
|
|
191 |
/** |
|
192 |
* 获取用户预约数据 |
|
193 |
* */ |
|
194 |
@PostMapping(value = "/user/appointment/list") |
f5bce1
|
195 |
Result userAppointment(@RequestBody UserAppointmentDto userAppointmentDto); |
7c680b
|
196 |
|
C |
197 |
/** |
|
198 |
* 获取用户划扣记录 |
|
199 |
* */ |
|
200 |
@PostMapping(value = "/user/project/deduction/list") |
f5bce1
|
201 |
Result userProjectDeduction(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
202 |
|
94e364
|
203 |
/** |
F |
204 |
* 获取会员等级变化记录 |
|
205 |
* */ |
|
206 |
@PostMapping(value = "/user/level/record/list") |
f5bce1
|
207 |
Result userLevelRecord(@RequestBody UserLevelDto userLevelDto); |
94e364
|
208 |
|
d139c6
|
209 |
/** |
F |
210 |
* 获取用户待领取增值金列表 |
|
211 |
* */ |
|
212 |
@PostMapping(value = "/user/wait/increment/list") |
f5bce1
|
213 |
Result userWaitIncList(@RequestBody UserWaitIncDto userWaitIncDto); |
d139c6
|
214 |
|
20524e
|
215 |
/** |
L |
216 |
* 获取用户颜值规划列表 |
|
217 |
* */ |
|
218 |
@PostMapping(value = "/user/appearance/list") |
|
219 |
Result userAppearanceList(@RequestBody UserDto userDto); |
|
220 |
|
|
221 |
/** |
|
222 |
* 获取用户颜值规划详情 |
|
223 |
* */ |
|
224 |
@PostMapping(value = "/user/appearance/info") |
|
225 |
Result userAppearanceInfo(@RequestParam("appearanceId") String appearanceId); |
|
226 |
|
c6f30e
|
227 |
/** |
f98fea
|
228 |
* 获取人群包列表(可传筛选的参数:会员等级,做过的项目,会员创建时间,最后一次消费时间,最后一次到店时间) |
c6f30e
|
229 |
* */ |
F |
230 |
@PostMapping(value = "/user/package/list") |
a795ef
|
231 |
Result userPackageList(@RequestBody UserPhisPackageDto userPhisPackageDto); |
F |
232 |
|
|
233 |
/**根据标识集合筛选用户*/ |
|
234 |
@PostMapping(value = "/user/idList/list") |
|
235 |
Result userIdSelectList(@RequestBody UserIdsDto userIdsDto); |
c6f30e
|
236 |
|
8c9fd0
|
237 |
/**获取用户信息,短信模板专用 |
C |
238 |
* 获取根据id或者CIQ或者hisId查找用户 |
|
239 |
* @param userDto 只使用id和CIQ |
|
240 |
* @return 转化使用UserDt |
|
241 |
*/ |
|
242 |
@PostMapping(value = "/user/sms-find") |
|
243 |
Result userSms(@RequestBody UserDto userDto); |
|
244 |
|
7c680b
|
245 |
} |