From 2fafa9f3558da65e0d453e4faa825b6730de8c96 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期三, 24 八月 2022 19:07:58 +0800 Subject: [PATCH] 修改命名 --- phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserService.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 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 index 4800ec1..1524058 100644 --- 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 @@ -6,7 +6,9 @@ import org.springframework.cloud.openfeign.FeignClient; import com.hx.resultTool.Result; +import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestParam; /** * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� @@ -19,13 +21,13 @@ * @param userId * @return */ - @PostMapping(value = "/user/consumption/data/list") - Result userList(String userId); + @PostMapping(value = "/user/consumption/data/list",consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) + Result userList(@RequestParam("userId") String userId); /** * 鏍规嵁鐢ㄦ埛id鍚屾鐢ㄦ埛鍩烘湰淇℃伅 * @param userId * @return */ - @PostMapping(value = "/sync/user/syncUserById") - Result syncUserById(String userId); + @PostMapping(value = "/sync/user/syncUserById",consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) + Result syncUserById(@RequestParam("userId") String userId); } -- Gitblit v1.8.0