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