zhouxiang
2022-08-31 a2379bde85121aea8716f709a859f31775e8fd46
提交 | 用户 | 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;
9 import org.springframework.web.bind.annotation.PostMapping;
10 import org.springframework.web.bind.annotation.RequestParam;
11
12 /**
13  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
14  */
15 @FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-order")
16 public interface SyncOrderService {
17
18     /**
19      * 根据用户id获取领健订单信息
20      * @param orderId
21      * @return
22      */
23     @PostMapping(value = "/sync/order/getOrderById")
24     Result getOrderById(@RequestParam("orderId") String orderId);
25 }