Skip to content

Commit

Permalink
[FEAT] 불필요한 업적 필드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
JIN-076 committed Feb 28, 2024
1 parent 68195dc commit 0c1ddd8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ public class UserUpdateApiRes {
private String avatarUrl;
@Schema(description = "유저가 원하는 직군", example = "[\"BACKEND\", \"FRONTEND\"]")
private List<String> wantedJobs;
@Schema(description = "유저의 업적 ID", example = "1")
private Long achievementId;

public static UserUpdateApiRes from(UserUpdateRes userUpdateRes) {
return new UserUpdateApiRes(
userUpdateRes.getUsername(),
userUpdateRes.getBio(),
userUpdateRes.getAvatarUrl(),
userUpdateRes.getWantedJobs().stream().map(WantedJob::getJobName).toList(),
userUpdateRes.getAchievementId()
userUpdateRes.getWantedJobs().stream().map(WantedJob::getJobName).toList()
);
}
}

0 comments on commit 0c1ddd8

Please sign in to comment.