fwq
2023-12-01 5955196a2c25cd1149ada2a477872edfd8f375c0
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
7c680b 2
C 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  */
11 @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "userLabel")
12 public interface SUserLabelService {
13
14     /**
15      * 获取用户颜值规划书标签
16      * @param userId 预约用户标识
17      * @return
18      */
19     @PostMapping(value = "/user/getUserLabel")
20     Result getUserLabel(@RequestParam("userId") String userId);
21 }