forked from Ynov/ptitspas-ynov-back
38 lines
1019 B
TypeScript
38 lines
1019 B
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
import { GenreType, StatutEnfantType } from "src/entities/children.entity";
|
|
|
|
export class EnfantResponseDto {
|
|
@ApiProperty({ example: 'UUID-enfant' })
|
|
id: string;
|
|
|
|
@ApiProperty({ enum: StatutEnfantType })
|
|
status: StatutEnfantType;
|
|
|
|
@ApiProperty({ example: 'Georges', required: false })
|
|
first_name?: string;
|
|
|
|
@ApiProperty({ example: 'Dupont', required: false })
|
|
last_name?: string;
|
|
|
|
@ApiProperty({ enum: GenreType, required: false })
|
|
gender?: GenreType;
|
|
|
|
@ApiProperty({ example: '2018-06-24', required: false })
|
|
birth_date?: string;
|
|
|
|
@ApiProperty({ example: '2024-12-24', required: false })
|
|
due_date?: string;
|
|
|
|
@ApiProperty({ example: 'https://monimage.com/photo.jpg', required: false })
|
|
photo_url?: string;
|
|
|
|
@ApiProperty({ example: false })
|
|
consent_photo: boolean;
|
|
|
|
@ApiProperty({ example: false })
|
|
is_multiple: boolean;
|
|
|
|
@ApiProperty({ example: 'UUID-parent' })
|
|
parent_id: string;
|
|
|
|
} |