-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [feat] make response dto * [feat] logic for get user nickname and profile * [refac] add missing '/' * [refac] add missing transational annotation * [refac] typo correction and encapsulation variable
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 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
12 changes: 12 additions & 0 deletions
12
...ava/org/hankki/hankkiserver/api/user/service/response/UserProfileAndNicknameResponse.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,12 @@ | ||
package org.hankki.hankkiserver.api.user.service.response; | ||
|
||
import org.hankki.hankkiserver.domain.user.model.UserInfo; | ||
|
||
public record UserProfileAndNicknameResponse( | ||
String nickname, | ||
String profileImageUrl | ||
) { | ||
public static UserProfileAndNicknameResponse of(UserInfo userInfo) { | ||
return new UserProfileAndNicknameResponse(userInfo.getNickname(), userInfo.getProfileImageUrl()); | ||
} | ||
} |