fhx
2024-04-16 8bb9c77d61c0d20e8a06e9185bf0a89a16dd6be2
提交 | 用户 | 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 }