wangrenhuang
2023-07-04 4bdc33f61729aa5387df5ef41e04f66dca1a35b0
提交 | 用户 | 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")
caaf93 16     Result handlerSyncUserLabelInfo(@RequestParam("userId") String userId, @RequestParam("type") Integer type);
784d11 17 }