From 784d11a20306096b19a39e3997795839b6948e97 Mon Sep 17 00:00:00 2001 From: ANDRU-PC\Andru <769883346@qq.com> Date: 星期二, 28 二月 2023 18:11:46 +0800 Subject: [PATCH] fegin 方法调整 --- phis-feign/src/main/java/com/hz/his/feign/service/dcp/SPhisUserTagInfoService.java | 17 +++++++++++++++++ phis-feign/src/main/java/com/hz/his/feign/service/dcp/SUserTagInfoService.java | 4 ---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/dcp/SPhisUserTagInfoService.java b/phis-feign/src/main/java/com/hz/his/feign/service/dcp/SPhisUserTagInfoService.java new file mode 100644 index 0000000..7575a44 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/dcp/SPhisUserTagInfoService.java @@ -0,0 +1,17 @@ +package com.hz.his.feign.service.dcp; + +import com.hx.resultTool.Result; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestParam; + +/** + * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@FeignClient(name="dcp-phis-service", path = "/dcp-phis", contextId = "phisUserTagInfo") +public interface SPhisUserTagInfoService { + + /**鍚屾鐢ㄦ埛鏍囩鏁版嵁*/ + @PostMapping("/test/handlerSyncUserLabelInfo") + Result handlerSyncUserLabelInfo(@RequestParam("userId") String userId); +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/dcp/SUserTagInfoService.java b/phis-feign/src/main/java/com/hz/his/feign/service/dcp/SUserTagInfoService.java index 6d20a9c..5f6ec34 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/dcp/SUserTagInfoService.java +++ b/phis-feign/src/main/java/com/hz/his/feign/service/dcp/SUserTagInfoService.java @@ -60,8 +60,4 @@ /**鏍囩鍒嗙被鏁版嵁鍒楄〃*/ @PostMapping("/tag/rule/info/list") Result listData(@RequestBody TagRuleInfoDto tagRuleInfoDto); - - /**鍚屾鐢ㄦ埛鏍囩鏁版嵁*/ - @PostMapping("/test/handlerSyncUserLabelInfo") - Result handlerSyncUserLabelInfo(@RequestParam("userId") String userId); } -- Gitblit v1.8.0