提交 | 用户 | age
|
751531
|
1 |
package com.hz.his.feign.service.sync; |
Z |
2 |
|
|
3 |
/** |
|
4 |
* @Author |
|
5 |
*/ |
|
6 |
|
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
|
8 |
import com.hx.resultTool.Result; |
2fafa9
|
9 |
import org.springframework.http.MediaType; |
751531
|
10 |
import org.springframework.web.bind.annotation.PostMapping; |
e81a31
|
11 |
import org.springframework.web.bind.annotation.RequestParam; |
751531
|
12 |
|
Z |
13 |
/** |
|
14 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
15 |
*/ |
|
16 |
@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-user") |
|
17 |
public interface SyncUserService { |
|
18 |
|
|
19 |
/** |
|
20 |
* 根据用户id同步用户基本信息,订单信息,可划扣信息,已划扣信息 |
|
21 |
* @param userId |
|
22 |
* @return |
|
23 |
*/ |
0f5ea3
|
24 |
@PostMapping(value = "/user/consumption/data/list") |
e81a31
|
25 |
Result userList(@RequestParam("userId") String userId); |
751531
|
26 |
/** |
Z |
27 |
* 根据用户id同步用户基本信息 |
|
28 |
* @param userId |
|
29 |
* @return |
|
30 |
*/ |
0f5ea3
|
31 |
@PostMapping(value = "/sync/user/syncUserById") |
e81a31
|
32 |
Result syncUserById(@RequestParam("userId") String userId); |
751531
|
33 |
} |