wangrenhuang
2023-11-15 fc93a15ea327e8b5766118fab16b2ccea3aa1f47
提交 | 用户 | age
3afb25 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-medical-records")
11 public interface SyncMedicalRecordsService {
12
13     /**
14      * 初始化病例模板
15      * @return
16      */
17     @PostMapping(value = "/sync/medical/records/his/medical/records/template")
18     Result syncMedicalRecordsTemplate();
19
20     /**
21      * 初始化病例
22      * @return
23      */
24     @PostMapping(value = "/sync/medical/records/his/medical/records")
25     Result syncMedicalRecords();
26 }