提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.feign.service; |
C |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.phis.dt.user.UserAppointmentDt; |
|
5 |
import com.hz.phis.dt.user.UserDt; |
94e364
|
6 |
import com.hz.phis.dt.user.UserLevelDt; |
7c680b
|
7 |
import com.hz.phis.dt.user.card.UserCardDt; |
C |
8 |
import com.hz.phis.dt.user.card.UserCardUsedDt; |
|
9 |
import com.hz.phis.dt.user.coupon.UserCanUseCouponDt; |
|
10 |
import com.hz.phis.dt.user.coupon.UserCouponDt; |
d139c6
|
11 |
import com.hz.phis.dt.user.money.*; |
7c680b
|
12 |
import com.hz.phis.dt.user.label.UserLabelDt; |
C |
13 |
import com.hz.phis.dt.user.project.UserProjectDt; |
|
14 |
import com.hz.phis.dt.user.project.UserProjectUsedDt; |
|
15 |
import org.springframework.cloud.openfeign.FeignClient; |
|
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") |
|
45 |
Result userProject(@RequestBody UserProjectDt userProjectDt); |
|
46 |
|
|
47 |
/** |
|
48 |
* 获取用户子项目 |
|
49 |
*/ |
|
50 |
@PostMapping(value = "/user/project/item/list") |
|
51 |
Result userProjectItem(@RequestBody UserProjectDt userProjectDt); |
|
52 |
|
|
53 |
/** |
|
54 |
* 获取用户子项目使用记录 |
|
55 |
*/ |
|
56 |
@PostMapping(value = "/user/project/used") |
|
57 |
Result userProjectUsed(@RequestBody UserProjectUsedDt userProjectUsedDt); |
|
58 |
|
|
59 |
|
|
60 |
/** |
|
61 |
* 获取用户卡包 |
|
62 |
*/ |
|
63 |
@PostMapping(value = "/user/card") |
|
64 |
Result userCard(@RequestBody UserCardDt userCardDt); |
|
65 |
|
|
66 |
/** |
|
67 |
* 获取用户卡包使用记录 |
|
68 |
*/ |
|
69 |
@PostMapping(value = "/user/card/used") |
|
70 |
Result userCardUsed(@RequestBody UserCardUsedDt userCardUsedDt); |
|
71 |
|
|
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") |
|
85 |
Result userCoupon(@RequestBody UserCouponDt userCouponDt); |
|
86 |
|
|
87 |
/** |
|
88 |
* 获取用户优惠券使用记录 |
|
89 |
* */ |
|
90 |
@PostMapping(value = "/user/coupon/used") |
|
91 |
Result userCouponUsed(@RequestParam UserCouponDt userCouponDt); |
|
92 |
|
|
93 |
|
|
94 |
/** |
|
95 |
* 获取用户增值金列表 |
|
96 |
* */ |
|
97 |
@PostMapping(value = "/user/increment/list") |
|
98 |
Result userIncrementList(@RequestBody UserIncrementDt userIncrementDt); |
|
99 |
|
|
100 |
/** |
|
101 |
* 获取用户增值金使用记录 |
|
102 |
* */ |
|
103 |
@PostMapping(value = "/user/increment/used") |
|
104 |
Result userIncrementUsed(@RequestBody UserIncrementDt userIncrementDt); |
|
105 |
|
|
106 |
/** |
|
107 |
* 获取用户储值金列表 |
|
108 |
* */ |
|
109 |
@PostMapping(value = "/user/recharge/list") |
|
110 |
Result userRechargeList(@RequestBody UserRechargeDt userRechargeDt); |
|
111 |
|
|
112 |
/** |
34fb19
|
113 |
* 获取用户资金使用记录 |
7c680b
|
114 |
* */ |
34fb19
|
115 |
@PostMapping(value = "/user/money/used") |
F |
116 |
Result userConsumeDt(@RequestBody UserConsumeDt userConsumeDt); |
7c680b
|
117 |
|
C |
118 |
/** |
|
119 |
* 获取用户积分列表 |
|
120 |
* */ |
|
121 |
@PostMapping(value = "/user/integral/list") |
|
122 |
Result userIntegralList(@RequestBody UserIntegralDt userIntegralDt); |
|
123 |
|
|
124 |
/** |
|
125 |
* 获取用户积分使用记录 |
|
126 |
* */ |
|
127 |
@PostMapping(value = "/user/integral/used") |
|
128 |
Result userIntegralUsed(@RequestBody UserIntegralDt userIntegralDt); |
|
129 |
|
|
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") |
|
149 |
Result userCanUseCoupon(@RequestBody UserCanUseCouponDt userCanUseCouponDt); |
|
150 |
|
|
151 |
/** |
|
152 |
* 根据电话号码或者CIQ获取指定用户 |
|
153 |
* */ |
|
154 |
@PostMapping(value = "/user/info/telOrCiq") |
|
155 |
Result findUserByTelOrCiq(@RequestBody UserDt userDt); |
|
156 |
|
|
157 |
|
|
158 |
/** |
|
159 |
* 获取用户标签 |
|
160 |
* @param |
|
161 |
* */ |
|
162 |
@PostMapping(value = "/user/label") |
|
163 |
Result userLabel(@RequestBody UserLabelDt userLabelDt); |
|
164 |
|
|
165 |
|
|
166 |
/** |
|
167 |
* 获取用户消费数据 |
|
168 |
* @param |
|
169 |
* */ |
|
170 |
@PostMapping(value = "/user/consume/count") |
|
171 |
Result userConsumeCount(@RequestBody UserConsumeDt userConsumeDt); |
|
172 |
|
|
173 |
|
|
174 |
/** |
|
175 |
* 获取用户预约数据 |
|
176 |
* */ |
|
177 |
@PostMapping(value = "/user/appointment/list") |
|
178 |
Result userAppointment(@RequestBody UserAppointmentDt userAppointmentDt); |
|
179 |
|
|
180 |
/** |
|
181 |
* 获取用户划扣记录 |
|
182 |
* */ |
|
183 |
@PostMapping(value = "/user/project/deduction/list") |
|
184 |
Result userProjectDeduction(@RequestBody UserProjectDt userProjectDt); |
|
185 |
|
94e364
|
186 |
/** |
F |
187 |
* 获取会员等级变化记录 |
|
188 |
* */ |
|
189 |
@PostMapping(value = "/user/level/record/list") |
|
190 |
Result userLevelRecord(@RequestBody UserLevelDt userLevelDt); |
|
191 |
|
d139c6
|
192 |
/** |
F |
193 |
* 获取用户待领取增值金列表 |
|
194 |
* */ |
|
195 |
@PostMapping(value = "/user/wait/increment/list") |
|
196 |
Result userWaitIncList(@RequestBody UserWaitIncDt userWaitIncDt); |
|
197 |
|
7c680b
|
198 |
} |