fwq
2023-05-06 c0c3ba60f8620d2700c76afb62732ef940c38c70
提交 | 用户 | age
5bb9d3 1 package com.hz.his.feign.service.sync;
L 2
3 import com.hx.resultTool.Result;
4 import org.springframework.cloud.openfeign.FeignClient;
5 import org.springframework.web.bind.annotation.PostMapping;
6
7 /**
8  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
9  */
10 @FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-prescription")
11 public interface SyncPrescriptionService {
12
13     /**
14      * 初始化处方模板
15      * @return
16      */
17     @PostMapping(value = "/sync/prescription/his/prescription/template")
18     Result syncPrescriptionTemplate();
19
20     /**
21      * 初始化处方
22      * @return
23      */
24     @PostMapping(value = "/sync/prescription/his/prescription")
25     Result syncPrescription();
26 }