File
dateAndTime
|
Type : Date
|
Decorators :
@ApiProperty() @IsNotEmpty({message: undefined})
|
|
id
|
Type : number
|
Decorators :
@ApiProperty()
|
|
imageDescription
|
Type : string
|
Decorators :
@ApiProperty() @IsNotEmpty({message: undefined})
|
|
imageUrl
|
Type : string
|
Decorators :
@ApiProperty() @IsNotEmpty({message: undefined})
|
|
status
|
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean}) @IsBoolean({message: undefined}) @IsNotEmpty({message: undefined})
|
|
summary
|
Type : string
|
Decorators :
@ApiProperty() @IsNotEmpty({message: undefined})
|
|
title
|
Type : string
|
Decorators :
@ApiProperty() @IsNotEmpty({message: undefined})
|
|
url
|
Type : string
|
Decorators :
@ApiProperty() @IsNotEmpty({message: undefined})
|
|
import { IsBoolean, IsNotEmpty } from 'class-validator';
import { MessaeSendResponseIsBoolean, MessaeSendResponseIsNotEmpty } from 'src/validation/validation.exception';
import { ApiProperty } from '@nestjs/swagger/dist';
export class PressValidation {
@ApiProperty()
id:number;
@ApiProperty()
@IsNotEmpty({ message: MessaeSendResponseIsNotEmpty('El titulo')})
title:string;
@ApiProperty()
@IsNotEmpty({ message: MessaeSendResponseIsNotEmpty('La descripcion de la imagen')})
imageDescription:string;
@ApiProperty()
@IsNotEmpty({ message: MessaeSendResponseIsNotEmpty('El resumen')})
summary:string;
@ApiProperty()
@IsNotEmpty({ message: MessaeSendResponseIsNotEmpty('La url de la imagen')})
imageUrl:string;
@ApiProperty()
@IsNotEmpty({ message: MessaeSendResponseIsNotEmpty('La url')})
url:string;
@ApiProperty()
@IsNotEmpty({ message: MessaeSendResponseIsNotEmpty('La Fecha del evento')})
dateAndTime:Date;
@ApiProperty({type:Boolean})
@IsBoolean({message:MessaeSendResponseIsBoolean('El estado')})
@IsNotEmpty({ message: MessaeSendResponseIsNotEmpty('El estado')})
status:boolean;
createdAt:Date;
}