From aed27533a64ff80a45c4ba4964e8d4db0f1d56dc Mon Sep 17 00:00:00 2001 From: jasmine <362055143@qq.com> Date: Tue, 8 Apr 2025 07:39:21 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4=E4=B8=BA=20Patch?= =?UTF-8?q?=20=E8=AF=B7=E6=B1=82=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../continew/admin/controller/system/UserProfileController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/continew-webapi/src/main/java/top/continew/admin/controller/system/UserProfileController.java b/continew-webapi/src/main/java/top/continew/admin/controller/system/UserProfileController.java index 77856123..5b6a7a4c 100644 --- a/continew-webapi/src/main/java/top/continew/admin/controller/system/UserProfileController.java +++ b/continew-webapi/src/main/java/top/continew/admin/controller/system/UserProfileController.java @@ -72,7 +72,7 @@ public class UserProfileController { private final AuthRequestFactory authRequestFactory; @Operation(summary = "修改头像", description = "用户修改个人头像") - @PostMapping("/avatar") + @PatchMapping("/avatar") public AvatarResp updateAvatar(@NotNull(message = "头像不能为空") MultipartFile avatarFile) throws IOException { ValidationUtils.throwIf(avatarFile::isEmpty, "头像不能为空"); String newAvatar = userService.updateAvatar(avatarFile, UserContextHolder.getUserId());