From ffaad1e0df9d7639b766011a8ca30a96c2c7ad6b Mon Sep 17 00:00:00 2001 From: wangrenhuang <wangren_huang@163.com> Date: 星期日, 09 十月 2022 19:40:18 +0800 Subject: [PATCH] 商品规格优化 --- phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserService.java | 14 ++++++++++---- 1 files changed, 10 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 1524058..97f2c91 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 @@ -4,10 +4,11 @@ * @Author */ -import org.springframework.cloud.openfeign.FeignClient; import com.hx.resultTool.Result; -import org.springframework.http.MediaType; +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; import org.springframework.web.bind.annotation.RequestParam; /** @@ -21,13 +22,18 @@ * @param userId * @return */ - @PostMapping(value = "/user/consumption/data/list",consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) + @PostMapping(value = "/user/consumption/data/list") Result userList(@RequestParam("userId") String userId); /** * 鏍规嵁鐢ㄦ埛id鍚屾鐢ㄦ埛鍩烘湰淇℃伅 * @param userId * @return */ - @PostMapping(value = "/sync/user/syncUserById",consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) + @PostMapping(value = "/sync/user/syncUserById") Result syncUserById(@RequestParam("userId") String userId); + + /** 涓诲姩鍚屾鍒涘缓椤惧鍒癶is - 淇敼鐢ㄦ埛ciq鍜屼細鍛樼瓑绾�*/ + @PostMapping("/sync/user/updateMembership") + Result updateMembership(@RequestBody JSONObject jsonObject); + } -- Gitblit v1.8.0