diff --git a/backend/src/routes/parents/dto/dossier-famille-complet.dto.ts b/backend/src/routes/parents/dto/dossier-famille-complet.dto.ts index c1de22c..2d1dc9d 100644 --- a/backend/src/routes/parents/dto/dossier-famille-complet.dto.ts +++ b/backend/src/routes/parents/dto/dossier-famille-complet.dto.ts @@ -1,7 +1,7 @@ import { ApiProperty } from '@nestjs/swagger'; import { StatutUtilisateurType } from 'src/entities/users.entity'; import { StatutDossierType } from 'src/entities/dossiers.entity'; -import { StatutEnfantType } from 'src/entities/children.entity'; +import { StatutEnfantType, GenreType } from 'src/entities/children.entity'; /** Parent dans le dossier famille (infos utilisateur + parent) */ export class DossierFamilleParentDto { @@ -29,6 +29,8 @@ export class DossierFamilleEnfantDto { first_name?: string; @ApiProperty({ required: false }) last_name?: string; + @ApiProperty({ required: false, enum: GenreType }) + genre?: GenreType; @ApiProperty({ required: false }) birth_date?: Date; @ApiProperty({ required: false }) diff --git a/backend/src/routes/parents/parents.service.ts b/backend/src/routes/parents/parents.service.ts index 6362b13..03cd29b 100644 --- a/backend/src/routes/parents/parents.service.ts +++ b/backend/src/routes/parents/parents.service.ts @@ -175,6 +175,7 @@ export class ParentsService { id: pc.child.id, first_name: pc.child.first_name, last_name: pc.child.last_name, + genre: pc.child.gender, birth_date: pc.child.birth_date, due_date: pc.child.due_date, status: pc.child.status,