提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.platform; |
F |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.token.GetTokenDto; |
|
5 |
import com.hz.his.dto.user.UserParamDto; |
|
6 |
import com.hz.his.dto.user.UserUnionDto; |
|
7 |
import com.hz.his.dto.user.coupon.UserCouponDto; |
|
8 |
import com.hz.his.dto.user.project.UserProjectDto; |
|
9 |
import org.springframework.cloud.openfeign.FeignClient; |
|
10 |
import org.springframework.web.bind.annotation.PostMapping; |
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 |
|
|
13 |
/** |
|
14 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
15 |
*/ |
39a067
|
16 |
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-user") |
ddd881
|
17 |
public interface SPhipUserService { |
F |
18 |
|
|
19 |
/** |
|
20 |
* 开放平台-用户新增 |
|
21 |
*/ |
|
22 |
@PostMapping(value = "/user/add") |
|
23 |
Result addUser(@RequestBody UserParamDto userParamDto); |
|
24 |
|
|
25 |
/** |
|
26 |
* 开放平台-修改用户 |
|
27 |
*/ |
|
28 |
@PostMapping(value = "/user/edit") |
|
29 |
Result editUser(@RequestBody UserParamDto userParamDto); |
|
30 |
|
|
31 |
|
|
32 |
/** |
|
33 |
* 开放平台-新增/修改来源 |
|
34 |
*/ |
|
35 |
@PostMapping(value = "/user/unionId/edit") |
|
36 |
Result editUnionUser(@RequestBody UserUnionDto userUnionDto); |
|
37 |
|
|
38 |
|
|
39 |
/** |
|
40 |
* 开放平台-根据子订单号取消用户项目 |
|
41 |
*/ |
|
42 |
@PostMapping(value = "/user/project/cancel") |
|
43 |
Result cancelUserProject(@RequestBody UserProjectDto userProjectDto); |
|
44 |
|
|
45 |
/** |
|
46 |
* 开放平台-根据子订单号取消用户优惠券 |
|
47 |
*/ |
|
48 |
@PostMapping(value = "/user/coupon/cancel") |
|
49 |
Result cancelUserCoupon(@RequestBody UserCouponDto userCouponDto); |
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
} |