cmg
2024-04-30 3dac1b9697a7a214789cc2d95788a178a63be4aa
提交 | 用户 | 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  */
3dac1b 10 @FeignClient(name="phi-platform-user",path = "/his_synchro",contextId = "synchro-prescription")
5bb9d3 11 public interface SyncPrescriptionService {
L 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 }