push de la fleme
This commit is contained in:
4
types/requests/IReqLoginData.ts
Normal file
4
types/requests/IReqLoginData.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
interface IReqLoginData {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
8
types/requests/IReqRegisterData.ts
Normal file
8
types/requests/IReqRegisterData.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
interface IReqRegisterData {
|
||||
username: string;
|
||||
displayName: string;
|
||||
password: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
gdpr: boolean;
|
||||
}
|
||||
11
types/responses/IResLoginData.ts
Normal file
11
types/responses/IResLoginData.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
interface IResLoginData {
|
||||
error: string;
|
||||
jwt: string;
|
||||
user: User;
|
||||
}
|
||||
|
||||
interface User {
|
||||
id: string;
|
||||
username: string;
|
||||
displayName: string;
|
||||
}
|
||||
13
types/responses/IResRegisterData.ts
Normal file
13
types/responses/IResRegisterData.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
interface IResRegisterData {
|
||||
error: string;
|
||||
jwt: string;
|
||||
user: User;
|
||||
}
|
||||
|
||||
interface User {
|
||||
id: string;
|
||||
username: string;
|
||||
displayName: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
}
|
||||
Reference in New Issue
Block a user