-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 봉사자 계정정보 수정 서비스 로직을 구현한다. * feat: 봉사자 계정정보 수정 api를 구현한다. * test: ImageRemover 인터페이스의 Mock을 테스트 커버리지에서 제외한다. * docs: 봉사자 계정 정보 수정 api를 문서화한다. * refactor: 봉사자 이미지 업데이트 도메인 로직을 개선한다. * refactor: 봉사자 계정 정보 수정 로직에서 엔티티 불변을 제거한다.
- Loading branch information
1 parent
0b1ff4c
commit 096f9bb
Showing
20 changed files
with
597 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/java/com/clova/anifriends/domain/common/ImageRemover.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.clova.anifriends.domain.common; | ||
|
||
public interface ImageRemover { | ||
|
||
/** | ||
* 원격지에 저장된 이미지를 삭제합니다. | ||
* @param imageUrl 이미지가 저장된 위치를 뜻하는 문자열 | ||
*/ | ||
void removeImage(String imageUrl); | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/com/clova/anifriends/domain/common/MockImageRemover.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.clova.anifriends.domain.common; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Slf4j | ||
@Component | ||
public class MockImageRemover implements ImageRemover { | ||
|
||
@Override | ||
public void removeImage(String imageUrl) { | ||
log.info("이미지가 삭제되었습니다."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...in/java/com/clova/anifriends/domain/volunteer/dto/request/UpdateVolunteerInfoRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.clova.anifriends.domain.volunteer.dto.request; | ||
|
||
import com.clova.anifriends.domain.volunteer.wrapper.VolunteerGender; | ||
import java.time.LocalDate; | ||
|
||
public record UpdateVolunteerInfoRequest( | ||
String name, | ||
VolunteerGender gender, | ||
LocalDate birthDate, | ||
String phoneNumber, | ||
String imageUrl) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.