36 lines
589 B
TypeScript
36 lines
589 B
TypeScript
import { IsBoolean, IsInt, IsNotEmpty, IsOptional, IsString } from "class-validator";
|
|
|
|
export class CreateEquipoDto {
|
|
@IsInt()
|
|
@IsNotEmpty()
|
|
id_area_ubicacion: number;
|
|
|
|
@IsInt()
|
|
@IsOptional()
|
|
id_equipo: number;
|
|
|
|
@IsInt()
|
|
@IsNotEmpty()
|
|
id_plataforma: number;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
ip: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
nombre_equipo: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
ubicacion: string;
|
|
}
|
|
|
|
export class UpdateAreaEquiposDto {
|
|
@IsInt()
|
|
id_area_ubicacion: number;
|
|
|
|
@IsBoolean()
|
|
activo: boolean;
|
|
}
|