running now
This commit is contained in:
parent
85cd083750
commit
c17bb05f0a
25 changed files with 156 additions and 114 deletions
|
|
@ -1,5 +1,5 @@
|
|||
export abstract class AbstractDto {
|
||||
id: string;
|
||||
id?: string;
|
||||
createdAt?: Date;
|
||||
updatedAt?: Date;
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import { UserDto } from "./UserDto";
|
||||
import { UserDto } from "./UserDto.js";
|
||||
|
||||
/**
|
||||
* DTO used for user creation
|
||||
*/
|
||||
export class CreateUserRequestDto {
|
||||
userData: UserDto;
|
||||
password: string;
|
||||
userData?: UserDto;
|
||||
password?: string;
|
||||
}
|
||||
|
|
@ -2,6 +2,6 @@
|
|||
* Defines a login request
|
||||
*/
|
||||
export class LoginRequestDto {
|
||||
userName: string;
|
||||
password: string;
|
||||
userName?: string;
|
||||
password?: string;
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import { UserDto } from "./UserDto";
|
||||
import { UserDto } from "./UserDto.js";
|
||||
|
||||
/**
|
||||
* Response to a successful login
|
||||
*/
|
||||
export class LoginResponseDto {
|
||||
userData: UserDto;
|
||||
token: string;
|
||||
userData?: UserDto;
|
||||
token?: string;
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import { AbstractDto } from "./AbstractDto";
|
||||
import { AbstractDto } from "./AbstractDto.js";
|
||||
|
||||
export class UserDto extends AbstractDto {
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
userName: string;
|
||||
email: string;
|
||||
role: string;
|
||||
userName!: string;
|
||||
email!: string;
|
||||
role?: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue