File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
src/main/java/dcom/homepage/api/domain/users/dto Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,31 @@ public static List<Profile> of(List<User> userProfileDtoList) {
44
44
}
45
45
}
46
46
47
+ @ ApiModel (value = "유저 프로필 정보" )
48
+ @ Builder
49
+ @ Getter
50
+ @ Setter
51
+ @ RequiredArgsConstructor
52
+ public static class SimpleProfile {
53
+ private final String userId ;
54
+ private final Integer admissionYear ;
55
+ private final String realName ;
56
+
57
+ public static SimpleProfile of (User user ) {
58
+ return SimpleProfile .builder ()
59
+ .userId (user .getUserId ())
60
+ .admissionYear (user .getAdmissionYear ())
61
+ .realName (user .getRealName ())
62
+ .build ();
63
+ }
64
+
65
+ public static List <SimpleProfile > of (List <User > userSimpleProfileDtoList ) {
66
+ return userSimpleProfileDtoList .stream ()
67
+ .map (SimpleProfile ::of )
68
+ .collect (Collectors .toList ());
69
+ }
70
+ }
71
+
47
72
@ ApiModel (value = "유저 회원 가입 정보" )
48
73
@ Builder
49
74
@ Getter @ Setter
You can’t perform that action at this time.
0 commit comments