提交 | 用户 | age
|
d7df65
|
1 |
package com.hz.his.feign.service.sync; |
Z |
2 |
|
|
3 |
/** |
|
4 |
* @Author |
|
5 |
*/ |
|
6 |
|
|
7 |
import com.hx.resultTool.Result; |
|
8 |
import org.springframework.cloud.openfeign.FeignClient; |
2c9ba9
|
9 |
import org.springframework.web.bind.annotation.GetMapping; |
d7df65
|
10 |
import org.springframework.web.bind.annotation.PostMapping; |
Z |
11 |
import org.springframework.web.bind.annotation.RequestParam; |
|
12 |
|
|
13 |
/** |
|
14 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
15 |
*/ |
|
16 |
@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-order") |
|
17 |
public interface SyncOrderService { |
|
18 |
|
|
19 |
/** |
|
20 |
* 根据用户id获取领健订单信息 |
|
21 |
* @param orderId |
|
22 |
* @return |
|
23 |
*/ |
2c9ba9
|
24 |
@GetMapping(value = "/sync/order/getOrderById") |
d7df65
|
25 |
Result getOrderById(@RequestParam("orderId") String orderId); |
Z |
26 |
} |