File

src/database/validation/rse-validation.ts

Index

Properties

Properties

contributions
Type : string
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
createdAt
Type : Date
dateAndTime
Type : Date
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
description
Type : string
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
id
Type : number
Decorators :
@ApiProperty()
imageDescription
Type : string
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
logo
Type : string
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
name
Type : string
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
objective
Type : string
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
preview
Type : string
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
sort
Type : number
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
@IsNumber({column: 'sort'})
status
Type : boolean
Decorators :
@ApiProperty({type: Boolean})
@IsBoolean({message: undefined})
@IsNotEmpty({message: undefined})
url
Type : string
Decorators :
@ApiProperty()
@IsNotEmpty({message: undefined})
import { IsBoolean, IsNotEmpty } from 'class-validator';
import { IsNumber } from 'src/validation/is-number'
import { MessaeSendResponseIsBoolean, MessaeSendResponseIsNotEmpty } from 'src/validation/validation.exception';
import { ApiProperty } from '@nestjs/swagger/dist';

export class RSEValidation {

    @ApiProperty()
    id:number;
    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('El nombre')})
    name:string;

    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('La descripcion')})
    description:string;

    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('El objetivo')})
    objective:string;

    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('La contribucion')})
    contributions:string;


    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('La previsualizcion')})
    preview:string;

    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('La url')})
    url:string;

    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('La descripcion de la imagen')})
    imageDescription:string;

    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('El logo')})
    logo:string;

    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('La Fecha del evento')})
    dateAndTime:Date;

    createdAt:Date;

    @ApiProperty({type:Boolean})
    @IsBoolean({message:MessaeSendResponseIsBoolean('El estado')})
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('El estado')})
    status:boolean;

    @ApiProperty()
    @IsNotEmpty({  message: MessaeSendResponseIsNotEmpty('El Mumero de Orden')})
    @IsNumber({column:'sort'})
    sort:number;

}

results matching ""

    No results matching ""