Co-authored-by: Julien Martin <julien.martin@ptits-pas.fr> Co-committed-by: Julien Martin <julien.martin@ptits-pas.fr>
26 lines
620 B
TypeScript
26 lines
620 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { RoleType, StatutUtilisateurType } from 'src/entities/users.entity';
|
|
|
|
export class ProfileResponseDto {
|
|
@ApiProperty()
|
|
id: string;
|
|
|
|
@ApiProperty()
|
|
email: string;
|
|
|
|
@ApiProperty({ enum: RoleType })
|
|
role: RoleType;
|
|
|
|
@ApiProperty()
|
|
prenom?: string;
|
|
|
|
@ApiProperty()
|
|
nom?: string;
|
|
|
|
@ApiProperty({ enum: StatutUtilisateurType })
|
|
statut: StatutUtilisateurType;
|
|
|
|
@ApiProperty({ description: 'Indique si le changement de mot de passe est obligatoire à la première connexion' })
|
|
changement_mdp_obligatoire: boolean;
|
|
}
|