-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 회원 정보 추가 기능 구현 * feat: 회원 프로필 추가 * fix: 회원/비회원 토큰 구분 불가 버그 수정 * feat: 프로필 없는 회원 구분 * feat: 엔드포인트 변경
- Loading branch information
Showing
9 changed files
with
71 additions
and
14 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
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
server/src/main/java/haengdong/user/application/request/UserJoinAppRequest.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 haengdong.user.application.request; | ||
|
||
import haengdong.user.domain.User; | ||
|
||
public record UserJoinAppRequest( | ||
String memberNumber, | ||
String nickname, | ||
String picture | ||
) { | ||
public User toUser() { | ||
return User.createMember(nickname, memberNumber, picture); | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
server/src/main/java/haengdong/user/presentation/response/UserResponse.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,19 @@ | ||
package haengdong.user.presentation.response; | ||
|
||
import haengdong.event.application.response.UserAppResponse; | ||
|
||
public record UserResponse( | ||
String nickname, | ||
String bankName, | ||
String accountNumber, | ||
boolean isGuest, | ||
String profileImage | ||
) { | ||
|
||
public static UserResponse of(UserAppResponse response) { | ||
return new UserResponse( | ||
response.nickname(), response.bankName(), response.accountNumber(), response.isGuest(), | ||
response.profileImage() | ||
); | ||
} | ||
} |