-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
39f2823
commit fec758b
Showing
8 changed files
with
29 additions
and
36 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
4 changes: 4 additions & 0 deletions
4
src/main/java/gov/cabinetoffice/gap/adminbackend/dtos/DepartmentDto.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package gov.cabinetoffice.gap.adminbackend.dtos; | ||
|
||
public record DepartmentDto(Integer id, String name, String ggisID) { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/gov/cabinetoffice/gap/adminbackend/dtos/RoleDto.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package gov.cabinetoffice.gap.adminbackend.dtos; | ||
|
||
public record RoleDto(Integer id, String name, String label, String description) { | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/gov/cabinetoffice/gap/adminbackend/dtos/UserV2DTO.java
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package gov.cabinetoffice.gap.adminbackend.dtos; | ||
|
||
import lombok.Builder; | ||
|
||
import javax.annotation.Nullable; | ||
import java.time.Instant; | ||
import java.util.List; | ||
|
||
@Builder | ||
public record UserV2DTO(String gapUserId, String emailAddress, String sub, List<RoleDto> roles, RoleDto role, | ||
@Nullable DepartmentDto department, @Nullable Instant created) { | ||
} |
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