summaryrefslogtreecommitdiff
path: root/server/dto
diff options
context:
space:
mode:
authorJoseph Ditton <jditton.atomic@gmail.com>2021-12-01 20:18:26 -0700
committerJoseph Ditton <jditton.atomic@gmail.com>2021-12-01 20:18:26 -0700
commit84b45cd6b11347e66437cd92dc20372d0abd6eb9 (patch)
tree6e42b5861278485c67159dc57c225983e3fd69f8 /server/dto
parentd803aaaf1be441f55fe674c3b0c6793e77a9203f (diff)
downloadlocchat-84b45cd6b11347e66437cd92dc20372d0abd6eb9.tar.gz
locchat-84b45cd6b11347e66437cd92dc20372d0abd6eb9.zip
adds roles
Diffstat (limited to 'server/dto')
-rw-r--r--server/dto/class.dto.ts1
-rw-r--r--server/dto/jwt_body.dto.ts3
2 files changed, 4 insertions, 0 deletions
diff --git a/server/dto/class.dto.ts b/server/dto/class.dto.ts
new file mode 100644
index 0000000..b4181a1
--- /dev/null
+++ b/server/dto/class.dto.ts
@@ -0,0 +1 @@
+export type Class<T> = { new (...args: any[]): T };
diff --git a/server/dto/jwt_body.dto.ts b/server/dto/jwt_body.dto.ts
index f8a1179..dc2e1b6 100644
--- a/server/dto/jwt_body.dto.ts
+++ b/server/dto/jwt_body.dto.ts
@@ -1,3 +1,6 @@
+import { RoleKey } from 'server/entities/role.entity';
+
export interface JwtBodyDto {
userId: number;
+ roles: RoleKey[];
}