cmg
2024-07-09 a9392b923b5267a50ecbeb17ed1643c8c9fa579d
提交 | 用户 | age
2e660e 1 package com.hz.his.feign.service.phis;
C 2
3 import com.hx.resultTool.Result;
4 import org.springframework.cloud.openfeign.FeignClient;
5 import org.springframework.web.bind.annotation.PostMapping;
6 import org.springframework.web.bind.annotation.RequestParam;
7
8 /**
9  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
10  */
a9392b 11 @FeignClient(name="phi-platform-user",path = "/p-his-data",contextId = "systemParameter")
2e660e 12 public interface SSystemParameterService {
C 13
14     /**
15      * 获取配置
16      * @param paramName 配置名称
17      * @return
18      */
19     @PostMapping(value = "/system/parameter/get")
20     Result getSystemParameterByNAME(@RequestParam("paramName") String paramName);
21 }