-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
4 changed files
with
37 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,7 +187,29 @@ public UserMe(User user) { | |
this.name = user.getName(); | ||
this.email = user.getEmail(); | ||
} | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PRIVATE) | ||
public static class UserMeWithMasking extends UserMe { | ||
@Schema(description = "User ID", example = "1", type = "number") | ||
private Long id; | ||
|
||
@Schema(description = "User name", example = "John Doe") | ||
private String name; | ||
|
||
@Schema(description = "User student ID", example = "223****4") | ||
private String sid; | ||
|
||
@Schema(description = "User email", example = "[email protected]") | ||
private String email; | ||
|
||
public UserMeWithMasking(User user) { | ||
this.id = user.getId(); | ||
this.sid = user.getSidWithMasking(); | ||
this.name = user.getName(); | ||
this.email = user.getEmail(); | ||
} | ||
} | ||
|
||
@Builder | ||
|
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