src/database/validation/parameter-validation.ts
Properties |
id |
Type : number
|
Decorators :
@IsNumber({column: 'id'})
|
import { IsNotEmpty } from 'class-validator';
import { IsNumber } from 'src/validation/is-number';
import { MessaeSendResponseIsNotEmpty } from 'src/validation/validation.exception';
export class IsParameterWithIdOfTable {
@IsNumber({column:'id'})
@IsNotEmpty({ message: MessaeSendResponseIsNotEmpty('El id ')})
id: number;
}