提交 | 用户 | 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 预约用户标识 |
74caeb
|
36 |
* @return 转化使用UserDt |
7c680b
|
37 |
*/ |
C |
38 |
@PostMapping(value = "/user/info") |
|
39 |
Result userInfo(@RequestParam("userId") String userId); |
74caeb
|
40 |
|
C |
41 |
|
|
42 |
/** |
|
43 |
* 根据电话号码查询用户信息 |
|
44 |
* @param tel |
|
45 |
* */ |
|
46 |
@PostMapping(value = "/user/info/tel") |
|
47 |
Result findUserInfoByTel(@RequestParam("tel") String tel); |
|
48 |
|
|
49 |
/** |
|
50 |
* 根据电话号码或者CIQ获取指定用户 |
|
51 |
* */ |
|
52 |
@PostMapping(value = "/user/info/telOrCiq") |
|
53 |
Result findUserByTelOrCiq(@RequestBody UserDto userDto); |
7c680b
|
54 |
|
C |
55 |
/** |
|
56 |
* 获取用户项目 |
|
57 |
*/ |
|
58 |
@PostMapping(value = "/user/project/list") |
f5bce1
|
59 |
Result userProject(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
60 |
|
C |
61 |
/** |
|
62 |
* 获取用户子项目 |
|
63 |
*/ |
|
64 |
@PostMapping(value = "/user/project/item/list") |
f5bce1
|
65 |
Result userProjectItem(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
66 |
|
C |
67 |
/** |
|
68 |
* 获取用户子项目使用记录 |
|
69 |
*/ |
|
70 |
@PostMapping(value = "/user/project/used") |
f5bce1
|
71 |
Result userProjectUsed(@RequestBody UserProjectUsedDto userProjectUsedDto); |
7c680b
|
72 |
|
C |
73 |
|
|
74 |
/** |
|
75 |
* 获取用户卡包 |
|
76 |
*/ |
|
77 |
@PostMapping(value = "/user/card") |
f5bce1
|
78 |
Result userCard(@RequestBody UserCardDto userCardDto); |
7c680b
|
79 |
|
C |
80 |
/** |
|
81 |
* 获取用户卡包使用记录 |
|
82 |
*/ |
|
83 |
@PostMapping(value = "/user/card/used") |
f5bce1
|
84 |
Result userCardUsed(@RequestBody UserCardUsedDto userCardUsedDto); |
7c680b
|
85 |
|
C |
86 |
|
|
87 |
/** |
|
88 |
* 获取用户促销使用记录 |
|
89 |
* @param orderItemNo 子订单号 |
|
90 |
* */ |
|
91 |
@PostMapping(value = "/user/promotion/used") |
|
92 |
Result userPromotionUsed(@RequestParam("orderItemNo") String orderItemNo); |
|
93 |
|
|
94 |
|
|
95 |
/** |
|
96 |
* 获取用户优惠券 |
|
97 |
* */ |
|
98 |
@PostMapping(value = "/user/coupon") |
f5bce1
|
99 |
Result userCoupon(@RequestBody UserCouponDto userCouponDto); |
7c680b
|
100 |
|
C |
101 |
/** |
|
102 |
* 获取用户优惠券使用记录 |
|
103 |
* */ |
|
104 |
@PostMapping(value = "/user/coupon/used") |
f5bce1
|
105 |
Result userCouponUsed(@RequestParam UserCouponDto userCouponDto); |
7c680b
|
106 |
|
C |
107 |
|
|
108 |
/** |
|
109 |
* 获取用户增值金列表 |
|
110 |
* */ |
|
111 |
@PostMapping(value = "/user/increment/list") |
f5bce1
|
112 |
Result userIncrementList(@RequestBody UserIncrementDto userIncrementDto); |
7c680b
|
113 |
|
C |
114 |
/** |
|
115 |
* 获取用户增值金使用记录 |
|
116 |
* */ |
|
117 |
@PostMapping(value = "/user/increment/used") |
f5bce1
|
118 |
Result userIncrementUsed(@RequestBody UserIncrementDto userIncrementDto); |
7c680b
|
119 |
|
C |
120 |
/** |
|
121 |
* 获取用户储值金列表 |
|
122 |
* */ |
|
123 |
@PostMapping(value = "/user/recharge/list") |
f5bce1
|
124 |
Result userRechargeList(@RequestBody UserRechargeDto userRechargeDto); |
7c680b
|
125 |
|
C |
126 |
/** |
34fb19
|
127 |
* 获取用户资金使用记录 |
7c680b
|
128 |
* */ |
34fb19
|
129 |
@PostMapping(value = "/user/money/used") |
f5bce1
|
130 |
Result userConsumeDt(@RequestBody UserConsumeDto userConsumeDto); |
7c680b
|
131 |
|
C |
132 |
/** |
|
133 |
* 获取用户积分列表 |
|
134 |
* */ |
|
135 |
@PostMapping(value = "/user/integral/list") |
f5bce1
|
136 |
Result userIntegralList(@RequestBody UserIntegralDto userIntegralDto); |
7c680b
|
137 |
|
C |
138 |
/** |
|
139 |
* 获取用户积分使用记录 |
|
140 |
* */ |
|
141 |
@PostMapping(value = "/user/integral/used") |
f5bce1
|
142 |
Result userIntegralUsed(@RequestBody UserIntegralDto userIntegralDto); |
7c680b
|
143 |
|
C |
144 |
|
|
145 |
/** |
|
146 |
* 获取用户拥有统计 |
|
147 |
* @param |
|
148 |
* */ |
|
149 |
@PostMapping(value = "/user/have/count") |
|
150 |
Result userHaveCount(@RequestParam("userId") String userId); |
|
151 |
|
|
152 |
/** |
|
153 |
* 获取用户可用优惠券 |
|
154 |
* @param |
|
155 |
* */ |
|
156 |
@PostMapping(value = "/user/can/use/coupon") |
f5bce1
|
157 |
Result userCanUseCoupon(@RequestBody UserCanUseCouponDto userCanUseCouponDto); |
7c680b
|
158 |
|
C |
159 |
|
|
160 |
/** |
|
161 |
* 获取用户标签 |
|
162 |
* @param |
|
163 |
* */ |
|
164 |
@PostMapping(value = "/user/label") |
f5bce1
|
165 |
Result userLabel(@RequestBody UserLabelDto userLabelDto); |
7c680b
|
166 |
|
C |
167 |
|
|
168 |
/** |
|
169 |
* 获取用户消费数据 |
|
170 |
* @param |
|
171 |
* */ |
|
172 |
@PostMapping(value = "/user/consume/count") |
f5bce1
|
173 |
Result userConsumeCount(@RequestBody UserConsumeDto userConsumeDto); |
7c680b
|
174 |
|
C |
175 |
|
|
176 |
/** |
|
177 |
* 获取用户预约数据 |
|
178 |
* */ |
|
179 |
@PostMapping(value = "/user/appointment/list") |
f5bce1
|
180 |
Result userAppointment(@RequestBody UserAppointmentDto userAppointmentDto); |
7c680b
|
181 |
|
C |
182 |
/** |
|
183 |
* 获取用户划扣记录 |
|
184 |
* */ |
|
185 |
@PostMapping(value = "/user/project/deduction/list") |
f5bce1
|
186 |
Result userProjectDeduction(@RequestBody UserProjectDto userProjectDto); |
7c680b
|
187 |
|
94e364
|
188 |
/** |
F |
189 |
* 获取会员等级变化记录 |
|
190 |
* */ |
|
191 |
@PostMapping(value = "/user/level/record/list") |
f5bce1
|
192 |
Result userLevelRecord(@RequestBody UserLevelDto userLevelDto); |
94e364
|
193 |
|
d139c6
|
194 |
/** |
F |
195 |
* 获取用户待领取增值金列表 |
|
196 |
* */ |
|
197 |
@PostMapping(value = "/user/wait/increment/list") |
f5bce1
|
198 |
Result userWaitIncList(@RequestBody UserWaitIncDto userWaitIncDto); |
d139c6
|
199 |
|
7c680b
|
200 |
} |