ANDRU-PC\Andru
2023-03-17 c0ec22769f386abb4f393ccc1d42591c559f6c38
提交 | 用户 | age
784d11 1 package com.hz.his.feign.service.dcp;
A 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  */
11 @FeignClient(name="dcp-phis-service", path = "/dcp-phis", contextId = "phisUserTagInfo")
12 public interface SPhisUserTagInfoService {
13
14     /**同步用户标签数据*/
15     @PostMapping("/test/handlerSyncUserLabelInfo")
16     Result handlerSyncUserLabelInfo(@RequestParam("userId") String userId);
17 }