src/database/validation/rse-validation.ts
Properties |
contributions |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:24
|
createdAt |
Type : Date
|
Defined in src/database/validation/rse-validation.ts:47
|
dateAndTime |
Type : Date
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:45
|
description |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:16
|
id |
Type : number
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:9
|
imageDescription |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:37
|
logo |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:41
|
name |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:12
|
objective |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:20
|
preview |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:29
|
sort |
Type : number
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:57
|
status |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean})
|
Defined in src/database/validation/rse-validation.ts:52
|
url |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/database/validation/rse-validation.ts:33
|
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;
}