From 6899561ed0f974ae56f46256d5fb6e12c6ae9c56 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 1 Apr 2026 12:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=B5=84=E6=96=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=94=B9=E6=88=90post?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapter/app/user/user/UserProfileRestController.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/user/user/UserProfileRestController.java b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/user/user/UserProfileRestController.java index a286ff04..ad53c977 100644 --- a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/user/user/UserProfileRestController.java +++ b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/user/user/UserProfileRestController.java @@ -13,11 +13,7 @@ import com.red.circle.other.inner.model.dto.user.UserProfileDTO; import lombok.RequiredArgsConstructor; import org.springframework.http.MediaType; import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; /** * 用户资料管理. @@ -116,7 +112,7 @@ public class UserProfileRestController extends BaseController { * @eo.method put * @eo.request-type json */ - @PutMapping("/update") + @PostMapping("/update") public UserProfileDTO updateUserProfile(@RequestBody @Validated UserProfileModifyCmd cmd) { return userProfileService.updateUserProfile(cmd); }