-
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.
- Loading branch information
1 parent
5b8d31d
commit 4e3438c
Showing
3 changed files
with
10 additions
and
33 deletions.
There are no files selected for viewing
25 changes: 0 additions & 25 deletions
25
src/main/java/slvtwn/khu/toyouserver/application/UserService.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
package slvtwn.khu.toyouserver.dto; | ||
|
||
import java.time.LocalDate; | ||
import slvtwn.khu.toyouserver.domain.User; | ||
|
||
public record UserResponse(Long id, String name, LocalDate birthday, String imageUrl) { | ||
public record UserResponse(Long id, String name, LocalDate birthday, String introduction, String imageUrl) { | ||
|
||
public static UserResponse of(User user) { | ||
return new UserResponse(user.getId(), user.getName(), user.getBirthday(), user.getIntroduction(), user.getProfilePicture()); | ||
} | ||
} |
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