From 75153167ac626bea638e16d5547b21a598f49cdf Mon Sep 17 00:00:00 2001 From: zhangxu <3%usVi4iXbVkhI1c> Date: 星期三, 24 八月 2022 17:44:15 +0800 Subject: [PATCH] 同步用户信息 --- phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserService.java | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserService.java b/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserService.java new file mode 100644 index 0000000..4800ec1 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserService.java @@ -0,0 +1,31 @@ +package com.hz.his.feign.service.sync; + +/** + * @Author + */ + +import org.springframework.cloud.openfeign.FeignClient; +import com.hx.resultTool.Result; +import org.springframework.web.bind.annotation.PostMapping; + +/** + * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-user") +public interface SyncUserService { + + /** + * 鏍规嵁鐢ㄦ埛id鍚屾鐢ㄦ埛鍩烘湰淇℃伅锛岃鍗曚俊鎭紝鍙垝鎵d俊鎭紝宸插垝鎵d俊鎭� + * @param userId + * @return + */ + @PostMapping(value = "/user/consumption/data/list") + Result userList(String userId); + /** + * 鏍规嵁鐢ㄦ埛id鍚屾鐢ㄦ埛鍩烘湰淇℃伅 + * @param userId + * @return + */ + @PostMapping(value = "/sync/user/syncUserById") + Result syncUserById(String userId); +} -- Gitblit v1.8.0