- Création DTOs (UploadDocumentDto, DocumentsActifsResponseDto, DocumentVersionDto) - Création DocumentsLegauxController avec 6 endpoints: * GET /documents-legaux/actifs (public) * GET /documents-legaux/:type/versions (admin) * POST /documents-legaux (upload, admin) * PATCH /documents-legaux/:id/activer (admin) * GET /documents-legaux/:id/download (public) * GET /documents-legaux/:id/verifier-integrite (admin) - Support upload multipart/form-data avec FileInterceptor - Validation des types (cgu/privacy) - Stream PDF pour téléchargement - Intégration dans DocumentsLegauxModule - Compilation OK TODO: Ajouter guards auth (JwtAuthGuard, RolesGuard) Réf: docs/22_DOCUMENTS-LEGAUX.md
15 lines
242 B
TypeScript
15 lines
242 B
TypeScript
export class DocumentVersionDto {
|
|
id: string;
|
|
version: number;
|
|
fichier_nom: string;
|
|
actif: boolean;
|
|
televersePar: {
|
|
id: string;
|
|
prenom?: string;
|
|
nom?: string;
|
|
} | null;
|
|
televerseLe: Date;
|
|
activeLe: Date | null;
|
|
}
|
|
|