From fa436449323ed9e465e4e18101be33781f14ba31 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期三, 22 三月 2023 17:09:30 +0800 Subject: [PATCH] 增加Feign调用 --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipUserService.java | 39 +++++++++++++++++++++++++++++++++++---- 1 files changed, 35 insertions(+), 4 deletions(-) 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 47f9267..84c0945 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 @@ -1,11 +1,13 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; -import com.hz.his.dto.token.GetTokenDto; +import com.hz.his.dto.user.UserListDto; +import com.hz.his.dto.user.UserMergeDto; import com.hz.his.dto.user.UserParamDto; import com.hz.his.dto.user.UserUnionDto; import com.hz.his.dto.user.coupon.UserCouponDto; import com.hz.his.dto.user.project.UserProjectDto; +import net.sf.json.JSONObject; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -13,8 +15,22 @@ /** * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� */ -@FeignClient(name="phi-platfrom-service",path = "/phip",contextId = "phip-user") +@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-user") public interface SPhipUserService { + + /** + * 寮�鏀惧钩鍙�-鑾峰彇鐢ㄦ埛鍒楄〃 + * 杩斿洖瀹炰綋鐢║serPhipDt + */ + @PostMapping(value = "/user/list") + Result userList(@RequestBody UserListDto userListDto); + + /** + * 寮�鏀惧钩鍙�-绮剧‘鑾峰彇鐢ㄦ埛鍒楄〃 + * 杩斿洖瀹炰綋鐢║serPhipDt + */ + @PostMapping(value = "/user/appoint_user") + Result appointUser(@RequestBody UserListDto userListDto); /** * 寮�鏀惧钩鍙�-鐢ㄦ埛鏂板 @@ -37,17 +53,32 @@ /** - * 寮�鏀惧钩鍙�-鏍规嵁瀛愯鍗曞彿鍙栨秷鐢ㄦ埛椤圭洰 + * 寮�鏀惧钩鍙�-鏍规嵁瀛愯鍗曞彿鍙栨秷鐢ㄦ埛椤圭洰(鏈悓姝is) */ @PostMapping(value = "/user/project/cancel") Result cancelUserProject(@RequestBody UserProjectDto userProjectDto); /** - * 寮�鏀惧钩鍙�-鏍规嵁瀛愯鍗曞彿鍙栨秷鐢ㄦ埛浼樻儬鍒� + * 寮�鏀惧钩鍙�-鏍规嵁瀛愯鍗曞彿鍙栨秷鐢ㄦ埛浼樻儬鍒�(鏈悓姝is) */ @PostMapping(value = "/user/coupon/cancel") Result cancelUserCoupon(@RequestBody UserCouponDto userCouponDto); + /** + * 涓诲姩鍚屾鍒涘缓椤惧鍒癶is - 浼氬憳绛夌骇 + */ + @PostMapping("/user/sync/update/his/user/level") + Result updateMembership(@RequestBody JSONObject jsonObject); + /** + * 鐢ㄦ埛鍗囩骇杩涘害 + */ + @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