-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 닉네임, 전화번호, 프로필 사진 URI 필드를 Member로 이동 (#65)
* refactor: 닉네임, 전화번호, 프로필 사진 URI 필드를 Member로 이동 * rename: Test Fixture 클래스를 각 도메인의 fixture 패키지로 이동 * test: 리팩토링한 Member에 대해 테스트 코드 변경 * refactor: Member에 속한 필드의 갱신 책임을 도메인 레이어에서 서비스 레이어로 이동 * test: Member에 속한 필드의 갱신 책임을 도메인 레이어에서 서비스 레이어로 이동에 대한 테스트 작성 * test: 내 회원 정보 수정 기능 서비스 단위 테스트 작성 * test: 엔티티 비교에 `assertSoftly` 적용
- Loading branch information
Showing
32 changed files
with
492 additions
and
322 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
45 changes: 45 additions & 0 deletions
45
src/main/java/es/princip/getp/domain/member/dto/request/UpdateMemberRequest.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,45 @@ | ||
package es.princip.getp.domain.member.dto.request; | ||
|
||
import es.princip.getp.domain.client.dto.request.CreateClientRequest; | ||
import es.princip.getp.domain.client.dto.request.UpdateClientRequest; | ||
import es.princip.getp.domain.people.dto.request.CreatePeopleRequest; | ||
import es.princip.getp.domain.people.dto.request.UpdatePeopleRequest; | ||
|
||
public record UpdateMemberRequest( | ||
String nickname, | ||
String phoneNumber, | ||
String profileImageUri | ||
) { | ||
|
||
public static UpdateMemberRequest from(final CreatePeopleRequest request) { | ||
return new UpdateMemberRequest( | ||
request.nickname(), | ||
request.phoneNumber(), | ||
request.profileImageUri() | ||
); | ||
} | ||
|
||
public static UpdateMemberRequest from(final UpdatePeopleRequest request) { | ||
return new UpdateMemberRequest( | ||
request.nickname(), | ||
request.phoneNumber(), | ||
request.profileImageUri() | ||
); | ||
} | ||
|
||
public static UpdateMemberRequest from(final CreateClientRequest request) { | ||
return new UpdateMemberRequest( | ||
request.nickname(), | ||
request.phoneNumber(), | ||
request.profileImageUri() | ||
); | ||
} | ||
|
||
public static UpdateMemberRequest from(final UpdateClientRequest request) { | ||
return new UpdateMemberRequest( | ||
request.nickname(), | ||
request.phoneNumber(), | ||
request.profileImageUri() | ||
); | ||
} | ||
} |
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.