Added routing by permissions #130

This commit is contained in:
2023-02-16 21:24:29 +01:00
parent e2ef4f3bde
commit f847841582
17 changed files with 260 additions and 26 deletions

View File

@@ -1,13 +1,28 @@
import { AuthRoles } from "./auth-roles.enum";
import {AuthRoles} from "./auth-roles.enum";
export interface AuthUserDTO {
id?: number;
firstName: string | null;
lastName: string | null;
email: string | null;
password: string | null;
isConfirmed?: boolean
authRole?: AuthRoles;
createdAt?: string;
modifiedAt?: string;
id?: number;
firstName: string | null;
lastName: string | null;
email: string | null;
password: string | null;
isConfirmed?: boolean;
authRole?: AuthRoles;
users?: UserDTO[];
createdAt?: string;
modifiedAt?: string;
}
export interface UserDTO {
id: number;
discordId: number;
xp: number;
minecraftId: number | null;
server: number;
createdAt: string;
modifiedAt: string;
isTechnician: boolean;
isAdmin: boolean;
IsModerator: boolean;
}