提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.platform; |
F |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
7df8eb
|
4 |
import com.hz.his.dto.user.UserListDto; |
fa4364
|
5 |
import com.hz.his.dto.user.UserMergeDto; |
ddd881
|
6 |
import com.hz.his.dto.user.UserParamDto; |
F |
7 |
import com.hz.his.dto.user.UserUnionDto; |
|
8 |
import com.hz.his.dto.user.coupon.UserCouponDto; |
|
9 |
import com.hz.his.dto.user.project.UserProjectDto; |
901640
|
10 |
import feign.Request; |
abc983
|
11 |
import net.sf.json.JSONObject; |
ddd881
|
12 |
import org.springframework.cloud.openfeign.FeignClient; |
F |
13 |
import org.springframework.web.bind.annotation.PostMapping; |
|
14 |
import org.springframework.web.bind.annotation.RequestBody; |
|
15 |
|
|
16 |
/** |
|
17 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
18 |
*/ |
39a067
|
19 |
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-user") |
ddd881
|
20 |
public interface SPhipUserService { |
F |
21 |
|
|
22 |
/** |
7df8eb
|
23 |
* 开放平台-获取用户列表 |
406597
|
24 |
* 返回实体用UserPhipDt |
7df8eb
|
25 |
*/ |
F |
26 |
@PostMapping(value = "/user/list") |
|
27 |
Result userList(@RequestBody UserListDto userListDto); |
|
28 |
|
|
29 |
/** |
17ce43
|
30 |
* 开放平台-精确获取用户列表 |
406597
|
31 |
* 返回实体用UserPhipDt |
17ce43
|
32 |
*/ |
F |
33 |
@PostMapping(value = "/user/appoint_user") |
|
34 |
Result appointUser(@RequestBody UserListDto userListDto); |
|
35 |
|
|
36 |
/** |
ddd881
|
37 |
* 开放平台-用户新增 |
F |
38 |
*/ |
|
39 |
@PostMapping(value = "/user/add") |
|
40 |
Result addUser(@RequestBody UserParamDto userParamDto); |
|
41 |
|
|
42 |
/** |
|
43 |
* 开放平台-修改用户 |
|
44 |
*/ |
|
45 |
@PostMapping(value = "/user/edit") |
|
46 |
Result editUser(@RequestBody UserParamDto userParamDto); |
|
47 |
|
|
48 |
|
|
49 |
/** |
|
50 |
* 开放平台-新增/修改来源 |
|
51 |
*/ |
|
52 |
@PostMapping(value = "/user/unionId/edit") |
|
53 |
Result editUnionUser(@RequestBody UserUnionDto userUnionDto); |
|
54 |
|
|
55 |
|
|
56 |
/** |
95db64
|
57 |
* 开放平台-根据子订单号取消用户项目(未同步his) |
ddd881
|
58 |
*/ |
F |
59 |
@PostMapping(value = "/user/project/cancel") |
|
60 |
Result cancelUserProject(@RequestBody UserProjectDto userProjectDto); |
|
61 |
|
|
62 |
/** |
95db64
|
63 |
* 开放平台-根据子订单号取消用户优惠券(未同步his) |
ddd881
|
64 |
*/ |
F |
65 |
@PostMapping(value = "/user/coupon/cancel") |
|
66 |
Result cancelUserCoupon(@RequestBody UserCouponDto userCouponDto); |
|
67 |
|
9c722d
|
68 |
/** |
A |
69 |
* 主动同步创建顾客到his - 会员等级 |
|
70 |
*/ |
abc983
|
71 |
@PostMapping("/user/sync/update/his/user/level") |
W |
72 |
Result updateMembership(@RequestBody JSONObject jsonObject); |
ddd881
|
73 |
|
9c722d
|
74 |
/** |
A |
75 |
* 用户升级进度 |
|
76 |
*/ |
|
77 |
@PostMapping("user/level/progress") |
|
78 |
Result userLevelProgress(@RequestBody JSONObject parmData); |
fa4364
|
79 |
|
ddd881
|
80 |
} |