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); }