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