feat(api): dossier famille — photo_url et consent_photo par enfant

- DossierFamilleEnfantDto: champs optionnels Swagger
- Mapping getDossierFamilleByNumero + fallback dossier_famille_enfants
- GET dossiers/:num (type family) enrichi via délégation existante

Made-with: Cursor
This commit is contained in:
2026-04-11 16:31:11 +02:00
parent 2b3128ce4a
commit d7ccbfbe35
2 changed files with 38 additions and 9 deletions
@@ -42,6 +42,18 @@ export class DossierFamilleEnfantDto {
due_date?: Date;
@ApiProperty({ enum: StatutEnfantType })
status: StatutEnfantType;
@ApiProperty({
required: false,
description: 'Chemin ou URL de la photo (souvent relatif, ex. /uploads/photos/...)',
})
photo_url?: string;
@ApiProperty({
required: false,
description: 'Consentement affichage photo (colonne consentement_photo)',
})
consent_photo?: boolean;
}
/** Réponse GET /parents/dossier-famille/:numeroDossier dossier famille complet. Ticket #119 */