From 2f8c0ffafcd045439583118b614ed2a25e577434 Mon Sep 17 00:00:00 2001 From: JJ503 <63184334+JJ503@users.noreply.github.com> Date: Mon, 18 Sep 2023 13:55:05 +0900 Subject: [PATCH 1/5] =?UTF-8?q?refactor:=20=EC=82=AC=EC=9A=A9=EC=9E=90=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=88=98=EC=A0=95=20=EC=8B=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=EB=A7=8C=20=EC=88=98=EC=A0=95=EB=90=A0=20?= =?UTF-8?q?=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ddang/user/application/UserService.java | 8 ++++-- .../com/ddang/ddang/user/domain/User.java | 5 +++- .../user/application/UserServiceTest.java | 26 +++++++++++++++++++ .../com/ddang/ddang/user/domain/UserTest.java | 26 ++++++++++++++++--- 4 files changed, 59 insertions(+), 6 deletions(-) diff --git a/backend/ddang/src/main/java/com/ddang/ddang/user/application/UserService.java b/backend/ddang/src/main/java/com/ddang/ddang/user/application/UserService.java index db5947839..6feb2adc4 100644 --- a/backend/ddang/src/main/java/com/ddang/ddang/user/application/UserService.java +++ b/backend/ddang/src/main/java/com/ddang/ddang/user/application/UserService.java @@ -30,9 +30,13 @@ public ReadUserDto readById(final Long userId) { public ReadUserDto updateById(final Long userId, final UpdateUserDto userDto) { final User user = userRepository.findByIdAndDeletedIsFalse(userId) .orElseThrow(() -> new UserNotFoundException("사용자 정보를 사용할 수 없습니다.")); - final StoreImageDto storeImageDto = imageProcessor.storeImageFile(userDto.profileImage()); - user.update(userDto.name(), storeImageDto.toProfileImageEntity()); + if (userDto.profileImage() != null) { + final StoreImageDto storeImageDto = imageProcessor.storeImageFile(userDto.profileImage()); + user.updateProfileImage(storeImageDto.toProfileImageEntity()); + } + user.updateName(userDto.name()); + return ReadUserDto.from(user); } diff --git a/backend/ddang/src/main/java/com/ddang/ddang/user/domain/User.java b/backend/ddang/src/main/java/com/ddang/ddang/user/domain/User.java index 25c12ba9c..b61d2e501 100644 --- a/backend/ddang/src/main/java/com/ddang/ddang/user/domain/User.java +++ b/backend/ddang/src/main/java/com/ddang/ddang/user/domain/User.java @@ -62,8 +62,11 @@ private User( this.oauthId = oauthId; } - public void update(final String name, final ProfileImage profileProfileImage) { + public void updateName(final String name) { this.name = name; + } + + public void updateProfileImage(final ProfileImage profileProfileImage) { this.profileImage = profileProfileImage; } diff --git a/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java b/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java index c2424a5d2..71eabea35 100644 --- a/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java +++ b/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java @@ -107,6 +107,32 @@ class UserServiceTest { }); } + @Test + void 사용자_정보를_수정시_이름만_수정한다() { + // given + final User user = User.builder() + .name("사용자") + .profileImage(new ProfileImage("upload.png", "store.png")) + .reliability(4.7d) + .oauthId("12345") + .build(); + + userRepository.save(user); + + final UpdateUserDto updateUserDto = new UpdateUserDto("updateName", null); + + // when + userService.updateById(user.getId(), updateUserDto); + + // then + SoftAssertions.assertSoftly(softAssertions -> { + softAssertions.assertThat(user.getName()).isEqualTo("updateName"); + softAssertions.assertThat(user.getProfileImage().getImage().getStoreName()).isEqualTo("store.png"); + softAssertions.assertThat(user.getReliability()).isEqualTo(4.7d); + softAssertions.assertThat(user.getOauthId()).isEqualTo("12345"); + }); + } + @Test void 사용자_정보_수정시_존재하지_않는_사용자라면_예외가_발생한다() { // given diff --git a/backend/ddang/src/test/java/com/ddang/ddang/user/domain/UserTest.java b/backend/ddang/src/test/java/com/ddang/ddang/user/domain/UserTest.java index e0b0305eb..e575cfa45 100644 --- a/backend/ddang/src/test/java/com/ddang/ddang/user/domain/UserTest.java +++ b/backend/ddang/src/test/java/com/ddang/ddang/user/domain/UserTest.java @@ -13,7 +13,7 @@ class UserTest { @Test - void 회원_정보를_수정한다() { + void 회원_정보의_이름을_수정한다() { // given final User user = User.builder() .name("kakao12345") @@ -22,12 +22,32 @@ class UserTest { .build(); // when - user.update("newName", new ProfileImage("newUpload.png", "newStore.png")); + user.updateName("newName"); // then SoftAssertions.assertSoftly(softAssertions -> { softAssertions.assertThat(user.getName()).isEqualTo("newName"); - softAssertions.assertThat(user.getProfileImage()).isEqualTo(new ProfileImage("newUpload.png", "newStore.png")); + softAssertions.assertThat(user.getProfileImage()).isEqualTo(new ProfileImage("upload.png", "store.png")); + softAssertions.assertThat(user.getReliability()).isEqualTo(5.0d); + }); + } + + @Test + void 회원_정보의_이미지를_수정한다() { + // given + final User user = User.builder() + .name("kakao12345") + .profileImage(new ProfileImage("upload.png", "store.png")) + .reliability(5.0d) + .build(); + + // when + user.updateProfileImage(new ProfileImage("updateUpload.png", "updateStore.png")); + + // then + SoftAssertions.assertSoftly(softAssertions -> { + softAssertions.assertThat(user.getName()).isEqualTo("kakao12345"); + softAssertions.assertThat(user.getProfileImage()).isEqualTo(new ProfileImage("updateUpload.png", "updateStore.png")); softAssertions.assertThat(user.getReliability()).isEqualTo(5.0d); }); } From d48901162d0e7a465add0d5e8bfc497043287a6f Mon Sep 17 00:00:00 2001 From: JJ503 <63184334+JJ503@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:43:09 +0900 Subject: [PATCH 2/5] =?UTF-8?q?feat:=20MultipartFile=EC=9D=98=20null=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=20=EC=B6=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ddang/user/application/UserService.java | 13 +++- .../user/presentation/UserController.java | 14 ++-- .../user/application/UserServiceTest.java | 36 +++++++++ .../user/presentation/UserControllerTest.java | 76 ++++++++++++++++++- 4 files changed, 126 insertions(+), 13 deletions(-) diff --git a/backend/ddang/src/main/java/com/ddang/ddang/user/application/UserService.java b/backend/ddang/src/main/java/com/ddang/ddang/user/application/UserService.java index 6feb2adc4..8a296ad52 100644 --- a/backend/ddang/src/main/java/com/ddang/ddang/user/application/UserService.java +++ b/backend/ddang/src/main/java/com/ddang/ddang/user/application/UserService.java @@ -31,13 +31,18 @@ public ReadUserDto updateById(final Long userId, final UpdateUserDto userDto) { final User user = userRepository.findByIdAndDeletedIsFalse(userId) .orElseThrow(() -> new UserNotFoundException("사용자 정보를 사용할 수 없습니다.")); + updateUserByReqeust(userDto, user); + + return ReadUserDto.from(user); + } + + private void updateUserByReqeust(final UpdateUserDto userDto, final User user) { if (userDto.profileImage() != null) { final StoreImageDto storeImageDto = imageProcessor.storeImageFile(userDto.profileImage()); user.updateProfileImage(storeImageDto.toProfileImageEntity()); } - user.updateName(userDto.name()); - - - return ReadUserDto.from(user); + if (userDto.name() != null) { + user.updateName(userDto.name()); + } } } diff --git a/backend/ddang/src/main/java/com/ddang/ddang/user/presentation/UserController.java b/backend/ddang/src/main/java/com/ddang/ddang/user/presentation/UserController.java index 352fd739d..a47bcdf31 100644 --- a/backend/ddang/src/main/java/com/ddang/ddang/user/presentation/UserController.java +++ b/backend/ddang/src/main/java/com/ddang/ddang/user/presentation/UserController.java @@ -35,13 +35,15 @@ public ResponseEntity readById(@AuthenticateUser final Authent @PatchMapping public ResponseEntity updateById( @AuthenticateUser final AuthenticationUserInfo userInfo, - @RequestPart @Valid final UpdateUserRequest request, - @RequestPart final MultipartFile profileImage + @RequestPart(required = false) @Valid final UpdateUserRequest request, + @RequestPart(required = false) final MultipartFile profileImage ) { - final ReadUserDto readUserDto = userService.updateById( - userInfo.userId(), - UpdateUserDto.of(request, profileImage) - ); + UpdateUserDto updateUserDto = null; + if (request != null) { + updateUserDto = UpdateUserDto.of(request, profileImage); + } + + final ReadUserDto readUserDto = userService.updateById(userInfo.userId(), updateUserDto); final ReadUserResponse response = ReadUserResponse.from(readUserDto); return ResponseEntity.ok(response); diff --git a/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java b/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java index 71eabea35..146b87c41 100644 --- a/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java +++ b/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java @@ -133,6 +133,42 @@ class UserServiceTest { }); } + @Test + void 사용자_정보를_수정시_이미지만_수정한다() { + // given + final User user = User.builder() + .name("사용자") + .profileImage(new ProfileImage("upload.png", "store.png")) + .reliability(4.7d) + .oauthId("12345") + .build(); + + userRepository.save(user); + + final StoreImageDto storeImageDto = new StoreImageDto("newUpload.png", "newStore.png"); + given(imageProcessor.storeImageFile(any())).willReturn(storeImageDto); + + final MockMultipartFile updateImage = new MockMultipartFile( + "updateImage.png", + "updateImage.png", + MediaType.IMAGE_PNG.toString(), + new byte[]{1} + ); + + final UpdateUserDto updateUserDto = new UpdateUserDto(null, updateImage); + + // when + userService.updateById(user.getId(), updateUserDto); + + // then + SoftAssertions.assertSoftly(softAssertions -> { + softAssertions.assertThat(user.getName()).isEqualTo("name"); + softAssertions.assertThat(user.getProfileImage().getImage().getStoreName()).isEqualTo("newStore.png"); + softAssertions.assertThat(user.getReliability()).isEqualTo(4.7d); + softAssertions.assertThat(user.getOauthId()).isEqualTo("12345"); + }); + } + @Test void 사용자_정보_수정시_존재하지_않는_사용자라면_예외가_발생한다() { // given diff --git a/backend/ddang/src/test/java/com/ddang/ddang/user/presentation/UserControllerTest.java b/backend/ddang/src/test/java/com/ddang/ddang/user/presentation/UserControllerTest.java index 9087cc5b3..5f3afbe40 100644 --- a/backend/ddang/src/test/java/com/ddang/ddang/user/presentation/UserControllerTest.java +++ b/backend/ddang/src/test/java/com/ddang/ddang/user/presentation/UserControllerTest.java @@ -172,7 +172,7 @@ void setUp(@Autowired RestDocumentationContextProvider provider) { } @Test - void 사용자_정보를_수정한다() throws Exception { + void 사용자_정보를_모두_수정한다() throws Exception { // given final MockMultipartFile profileImage = new MockMultipartFile( "profileImage", @@ -218,14 +218,84 @@ void setUp(@Autowired RestDocumentationContextProvider provider) { ), responseFields( fieldWithPath("name").type(JsonFieldType.STRING).description("사용자 닉네임"), - fieldWithPath("profileImage").type(JsonFieldType.STRING) - .description("사용자 프로필 이미지"), + fieldWithPath("profileImage").type(JsonFieldType.STRING).description("사용자 프로필 이미지"), fieldWithPath("reliability").type(JsonFieldType.NUMBER).description("사용자 신뢰도") ) ) ); } + @Test + void 사용자_정보를_이름만_수정한다() throws Exception { + // given + final MockMultipartFile profileImage = new MockMultipartFile( + "profileImage", + (byte[]) null + ); + final UpdateUserRequest updateUserRequest = new UpdateUserRequest("updateName"); + final MockMultipartFile request = new MockMultipartFile( + "request", + "request", + MediaType.APPLICATION_JSON_VALUE, + objectMapper.writeValueAsBytes(updateUserRequest) + ); + + final ReadUserDto readUserDto = new ReadUserDto(1L, "사용자1", 1L, 4.6d, "12345", false); + final PrivateClaims privateClaims = new PrivateClaims(1L); + + given(userService.updateById(anyLong(), any())).willReturn(readUserDto); + given(mockTokenDecoder.decode(eq(TokenType.ACCESS), anyString())).willReturn(Optional.of(privateClaims)); + + // when & then + mockMvc.perform(multipart(HttpMethod.PATCH, "/users") + .file(request) + .file(profileImage) + .contentType(MediaType.MULTIPART_FORM_DATA_VALUE) + .header(HttpHeaders.AUTHORIZATION, "Bearer accessToken") + ) + .andExpectAll( + status().isOk(), + jsonPath("$.name", is(readUserDto.name())), + jsonPath("$.profileImage").exists(), + jsonPath("$.reliability", is(readUserDto.reliability())) + ); + } + + @Test + void 사용자_정보를_이미지만_수정한다() throws Exception { + // given + final MockMultipartFile profileImage = new MockMultipartFile( + "profileImage", + "image.png", + MediaType.IMAGE_PNG_VALUE, + new byte[]{1} + ); + final MockMultipartFile request = new MockMultipartFile( + "request", + (byte[]) null + ); + + final ReadUserDto readUserDto = new ReadUserDto(1L, "사용자1", 1L, 4.6d, "12345", false); + final PrivateClaims privateClaims = new PrivateClaims(1L); + + given(userService.updateById(anyLong(), any())).willReturn(readUserDto); + given(mockTokenDecoder.decode(eq(TokenType.ACCESS), anyString())).willReturn(Optional.of(privateClaims)); + + // when & then + mockMvc.perform(multipart(HttpMethod.PATCH, "/users") + .file(request) + .file(profileImage) + .contentType(MediaType.MULTIPART_FORM_DATA_VALUE) + .header(HttpHeaders.AUTHORIZATION, "Bearer accessToken") + ) + .andExpectAll( + status().isOk(), + jsonPath("$.name", is(readUserDto.name())), + jsonPath("$.profileImage").exists(), + jsonPath("$.reliability", is(readUserDto.reliability())) + ); + } + @Test void 존재하지_않는_사용자_정보_조회시_404를_반환한다() throws Exception { // given From 6308748eeb8f220dab4236bce8972d8c4c35014c Mon Sep 17 00:00:00 2001 From: JJ503 <63184334+JJ503@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:44:44 +0900 Subject: [PATCH 3/5] =?UTF-8?q?refactor:=20=EC=88=98=EC=A0=95=EB=90=98?= =?UTF-8?q?=EC=A7=80=20=EB=AA=BB=ED=95=9C=20=ED=81=B4=EB=9E=98=EC=8A=A4=20?= =?UTF-8?q?=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ddang/ddang/image/application/ImageService.java | 4 ++-- ...JpaImageRepository.java => JpaProfileImageRepository.java} | 2 +- .../ddang/image/application/ProfileImageServiceTest.java | 4 ++-- ...RepositoryTest.java => JpaAuctionImageRepositoryTest.java} | 2 +- .../persistence/JpaProfileImageRepositoryTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename backend/ddang/src/main/java/com/ddang/ddang/image/infrastructure/persistence/{JpaImageRepository.java => JpaProfileImageRepository.java} (66%) rename backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/{JpaAuctionProfileImageRepositoryTest.java => JpaAuctionImageRepositoryTest.java} (97%) diff --git a/backend/ddang/src/main/java/com/ddang/ddang/image/application/ImageService.java b/backend/ddang/src/main/java/com/ddang/ddang/image/application/ImageService.java index e871a2936..bb64c5dca 100644 --- a/backend/ddang/src/main/java/com/ddang/ddang/image/application/ImageService.java +++ b/backend/ddang/src/main/java/com/ddang/ddang/image/application/ImageService.java @@ -3,7 +3,7 @@ import com.ddang.ddang.image.domain.AuctionImage; import com.ddang.ddang.image.domain.ProfileImage; import com.ddang.ddang.image.infrastructure.persistence.JpaAuctionImageRepository; -import com.ddang.ddang.image.infrastructure.persistence.JpaImageRepository; +import com.ddang.ddang.image.infrastructure.persistence.JpaProfileImageRepository; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.io.Resource; @@ -22,7 +22,7 @@ public class ImageService { @Value("${image.store.dir}") private String imageStoreDir; - private final JpaImageRepository imageRepository; + private final JpaProfileImageRepository imageRepository; private final JpaAuctionImageRepository auctionImageRepository; public Resource readProfileImage(final Long id) throws MalformedURLException { diff --git a/backend/ddang/src/main/java/com/ddang/ddang/image/infrastructure/persistence/JpaImageRepository.java b/backend/ddang/src/main/java/com/ddang/ddang/image/infrastructure/persistence/JpaProfileImageRepository.java similarity index 66% rename from backend/ddang/src/main/java/com/ddang/ddang/image/infrastructure/persistence/JpaImageRepository.java rename to backend/ddang/src/main/java/com/ddang/ddang/image/infrastructure/persistence/JpaProfileImageRepository.java index f04bb2f15..e1a218310 100644 --- a/backend/ddang/src/main/java/com/ddang/ddang/image/infrastructure/persistence/JpaImageRepository.java +++ b/backend/ddang/src/main/java/com/ddang/ddang/image/infrastructure/persistence/JpaProfileImageRepository.java @@ -3,5 +3,5 @@ import com.ddang.ddang.image.domain.ProfileImage; import org.springframework.data.jpa.repository.JpaRepository; -public interface JpaImageRepository extends JpaRepository { +public interface JpaProfileImageRepository extends JpaRepository { } diff --git a/backend/ddang/src/test/java/com/ddang/ddang/image/application/ProfileImageServiceTest.java b/backend/ddang/src/test/java/com/ddang/ddang/image/application/ProfileImageServiceTest.java index cb206bcf5..91d6ecd41 100644 --- a/backend/ddang/src/test/java/com/ddang/ddang/image/application/ProfileImageServiceTest.java +++ b/backend/ddang/src/test/java/com/ddang/ddang/image/application/ProfileImageServiceTest.java @@ -4,7 +4,7 @@ import com.ddang.ddang.image.domain.AuctionImage; import com.ddang.ddang.image.domain.ProfileImage; import com.ddang.ddang.image.infrastructure.persistence.JpaAuctionImageRepository; -import com.ddang.ddang.image.infrastructure.persistence.JpaImageRepository; +import com.ddang.ddang.image.infrastructure.persistence.JpaProfileImageRepository; import org.junit.jupiter.api.DisplayNameGeneration; import org.junit.jupiter.api.DisplayNameGenerator; import org.junit.jupiter.api.Test; @@ -27,7 +27,7 @@ class ProfileImageServiceTest { ImageService imageService; @Autowired - JpaImageRepository imageRepository; + JpaProfileImageRepository imageRepository; @Autowired JpaAuctionImageRepository auctionImageRepository; diff --git a/backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaAuctionProfileImageRepositoryTest.java b/backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaAuctionImageRepositoryTest.java similarity index 97% rename from backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaAuctionProfileImageRepositoryTest.java rename to backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaAuctionImageRepositoryTest.java index a513e5bd1..59f4d4dd4 100644 --- a/backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaAuctionProfileImageRepositoryTest.java +++ b/backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaAuctionImageRepositoryTest.java @@ -19,7 +19,7 @@ @DisplayNameGeneration(DisplayNameGenerator.ReplaceUnderscores.class) @SuppressWarnings("NonAsciiCharacters") @Import(QuerydslConfiguration.class) -class JpaAuctionProfileImageRepositoryTest { +class JpaAuctionImageRepositoryTest { @PersistenceContext EntityManager em; diff --git a/backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaProfileImageRepositoryTest.java b/backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaProfileImageRepositoryTest.java index fd6a66446..40de0afa7 100644 --- a/backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaProfileImageRepositoryTest.java +++ b/backend/ddang/src/test/java/com/ddang/ddang/image/infrastructure/persistence/JpaProfileImageRepositoryTest.java @@ -27,7 +27,7 @@ class JpaProfileImageRepositoryTest { EntityManager em; @Autowired - JpaImageRepository imageRepository; + JpaProfileImageRepository imageRepository; @Test void 지정한_아이디에_해당하는_이미지를_조회한다() { From 82b3069b976f0d36a10cbeb1253f89f077cf928b Mon Sep 17 00:00:00 2001 From: JJ503 <63184334+JJ503@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:48:01 +0900 Subject: [PATCH 4/5] =?UTF-8?q?test:=20=EC=9E=98=EB=AA=BB=EB=90=9C=20?= =?UTF-8?q?=EA=B2=80=EC=A6=9D=20=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ddang/ddang/user/application/UserServiceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java b/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java index 146b87c41..7af8b11ee 100644 --- a/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java +++ b/backend/ddang/src/test/java/com/ddang/ddang/user/application/UserServiceTest.java @@ -162,7 +162,7 @@ class UserServiceTest { // then SoftAssertions.assertSoftly(softAssertions -> { - softAssertions.assertThat(user.getName()).isEqualTo("name"); + softAssertions.assertThat(user.getName()).isEqualTo("사용자"); softAssertions.assertThat(user.getProfileImage().getImage().getStoreName()).isEqualTo("newStore.png"); softAssertions.assertThat(user.getReliability()).isEqualTo(4.7d); softAssertions.assertThat(user.getOauthId()).isEqualTo("12345"); From d20b1be30c7f6b35b5e6060a90613548789e3a74 Mon Sep 17 00:00:00 2001 From: JJ503 <63184334+JJ503@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:05:37 +0900 Subject: [PATCH 5/5] =?UTF-8?q?refactor:=20=ED=95=84=EB=93=9C=EB=AA=85=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ddang/src/main/java/com/ddang/ddang/user/domain/User.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/ddang/src/main/java/com/ddang/ddang/user/domain/User.java b/backend/ddang/src/main/java/com/ddang/ddang/user/domain/User.java index b61d2e501..0e02c571e 100644 --- a/backend/ddang/src/main/java/com/ddang/ddang/user/domain/User.java +++ b/backend/ddang/src/main/java/com/ddang/ddang/user/domain/User.java @@ -66,8 +66,8 @@ public void updateName(final String name) { this.name = name; } - public void updateProfileImage(final ProfileImage profileProfileImage) { - this.profileImage = profileProfileImage; + public void updateProfileImage(final ProfileImage profileImage) { + this.profileImage = profileImage; } public void withdrawal() {