diff --git a/backend/src/main/java/mouda/backend/darakbangmember/presentation/controller/DarakbangMemberController.java b/backend/src/main/java/mouda/backend/darakbangmember/presentation/controller/DarakbangMemberController.java index ff061659a..8a1945915 100644 --- a/backend/src/main/java/mouda/backend/darakbangmember/presentation/controller/DarakbangMemberController.java +++ b/backend/src/main/java/mouda/backend/darakbangmember/presentation/controller/DarakbangMemberController.java @@ -11,6 +11,7 @@ import org.springframework.web.multipart.MultipartFile; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import mouda.backend.common.config.argumentresolver.LoginDarakbangMember; import mouda.backend.common.config.argumentresolver.LoginMember; import mouda.backend.common.response.RestResponse; @@ -22,6 +23,7 @@ import mouda.backend.member.domain.Member; import mouda.backend.member.presentation.response.DarakbangMemberInfoResponse; +@Slf4j @RestController @RequestMapping("/v1/darakbang") @RequiredArgsConstructor @@ -68,11 +70,15 @@ public ResponseEntity> findMyInfo( }) public ResponseEntity updateMyInfo( @LoginDarakbangMember DarakbangMember darakbangMember, - @RequestPart(value = "profile_img", required = false) MultipartFile profile_img, + @RequestPart(value = "file", required = false) MultipartFile file, + @RequestPart(value = "profile", required = false) String profile, @RequestPart("nickname") String nickname, @RequestPart(value = "description", required = false) String description ) { - darakbangMemberService.updateMyInfo(darakbangMember, profile_img, nickname, description); + + log.info("file : {}, profile : {}, nickname : {}, description : {}", file.toString(), profile, nickname, + description); + darakbangMemberService.updateMyInfo(darakbangMember, file, nickname, description); return ResponseEntity.ok().build(); } diff --git a/backend/src/main/java/mouda/backend/darakbangmember/presentation/controller/swagger/DarakbangMemberSwagger.java b/backend/src/main/java/mouda/backend/darakbangmember/presentation/controller/swagger/DarakbangMemberSwagger.java index 1efcb55b7..43b9d2a0e 100644 --- a/backend/src/main/java/mouda/backend/darakbangmember/presentation/controller/swagger/DarakbangMemberSwagger.java +++ b/backend/src/main/java/mouda/backend/darakbangmember/presentation/controller/swagger/DarakbangMemberSwagger.java @@ -54,6 +54,7 @@ ResponseEntity> findMyInfo( ResponseEntity updateMyInfo( @LoginDarakbangMember DarakbangMember member, @RequestPart MultipartFile file, + @RequestPart String profile, @RequestPart String nickname, @RequestPart String description );