Skip to content

Commit

Permalink
hotfix : 유저 발견 return값 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy-asl committed Apr 18, 2024
1 parent b3ae5c2 commit d73adf1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ record UserInfoVO(
int[] userTag,
String userName,
int viewCount,
String userDetail,
boolean designerScrap
){
public static UserInfoVO of(User user, boolean designerScrap){
Expand All @@ -32,6 +33,7 @@ public static UserInfoVO of(User user, boolean designerScrap){
.userTag(user.getTags() == null ? new int[0] : user.getTags())
.userName(user.getUserName())
.viewCount(user.getViewCount())
.userDetail(user.getDetail())
.designerScrap(designerScrap)
.build();
}
Expand All @@ -41,14 +43,12 @@ public static UserInfoVO of(User user, boolean designerScrap){
record WorkInfoVO(
Long workId,
String workTitle,
String workDetail,
String photoUrl
){
public static WorkInfoVO of (Work work){
return WorkInfoVO.builder()
.workId(work.getId())
.workTitle(work.getTitle())
.workDetail(work.getDetail())
.photoUrl(work.getPhotoUrl())
.build();
}
Expand Down

0 comments on commit d73adf1

Please sign in to comment.