Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ public record AdminResponse(
String trackName,

@Schema(description = "슈퍼 어드민 권한", example = "false", requiredMode = REQUIRED)
Boolean superAdmin
Boolean superAdmin,

@Schema(description = "활성화 여부", example = "true", requiredMode = REQUIRED)
Boolean isAuthed
) {
public static AdminResponse from(Admin admin) {
User user = admin.getUser();
Expand All @@ -34,7 +37,8 @@ public static AdminResponse from(Admin admin) {
admin.getEmail(),
user.getName(),
admin.getTrackType().getValue(),
admin.isSuperAdmin()
admin.isSuperAdmin(),
user.isAuthed()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ public record InnerAdminsResponse(
String trackName,

@Schema(description = "슈퍼 어드민 권한", example = "false", requiredMode = REQUIRED)
Boolean superAdmin
Boolean superAdmin,

@Schema(description = "활성화 여부", example = "true", requiredMode = REQUIRED)
Boolean isAuthed
) {
public static InnerAdminsResponse from(Admin admin) {
User user = admin.getUser();
Expand All @@ -56,7 +59,8 @@ public static InnerAdminsResponse from(Admin admin) {
admin.getEmail(),
user.getName(),
admin.getTrackType().getValue(),
admin.isSuperAdmin()
admin.isSuperAdmin(),
user.isAuthed()
);
}
}
Expand Down
Loading