forked from Ynov/ptitspas-ynov-back
profile dto added
This commit is contained in:
parent
f22da94ab4
commit
de725dffd7
22
src/routes/user/dto/profile_response.dto.ts
Normal file
22
src/routes/user/dto/profile_response.dto.ts
Normal file
@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user