From 901640864538fe0b27f161c484cd13d14cafb8a2 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期四, 23 三月 2023 11:26:36 +0800 Subject: [PATCH] 抽离合并的Feign --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserService.java | 6 +----- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserMergeService.java | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserMergeService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserMergeService.java new file mode 100644 index 0000000..51abc4e --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserMergeService.java @@ -0,0 +1,21 @@ +package com.hz.his.feign.service.platform; + +import com.hx.resultTool.Result; +import com.hz.his.dto.user.UserMergeDto; +import feign.Request; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-user-merge") +public interface SPhipUserMergeService { + + /** + * 鐢ㄦ埛鍚堝苟鏃ュ織 + */ + @PostMapping("/user/merge/log/add") + Result userMergeAdd(Request.Options options, @RequestBody UserMergeDto userMergeDto); +} \ No newline at end of file diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserService.java index 84c0945..e076a63 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserService.java +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserService.java @@ -7,6 +7,7 @@ import com.hz.his.dto.user.UserUnionDto; import com.hz.his.dto.user.coupon.UserCouponDto; import com.hz.his.dto.user.project.UserProjectDto; +import feign.Request; import net.sf.json.JSONObject; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; @@ -76,9 +77,4 @@ @PostMapping("user/level/progress") Result userLevelProgress(@RequestBody JSONObject parmData); - /** - * 鐢ㄦ埛鍗囩骇杩涘害 - */ - @PostMapping("/user/merge/log/add") - Result userMergeAdd(@RequestBody UserMergeDto userMergeDto); } \ No newline at end of file -- Gitblit v1.8.0