new ep actualizar area

This commit is contained in:
2026-02-11 16:48:05 -06:00
parent 55c7ff8c02
commit ece4c9a2f2
3 changed files with 57 additions and 20 deletions
+27 -19
View File
@@ -1,27 +1,35 @@
import { IsInt, IsNotEmpty, IsOptional, IsString } from "class-validator";
import { IsBoolean, IsInt, IsNotEmpty, IsOptional, IsString } from "class-validator";
export class CreateEquipoDto {
@IsInt()
@IsNotEmpty()
id_area_ubicacion: number;
@IsInt()
@IsNotEmpty()
id_area_ubicacion: number;
@IsInt()
@IsOptional()
id_equipo: number;
@IsInt()
@IsOptional()
id_equipo: number;
@IsInt()
@IsNotEmpty()
id_plataforma: number;
@IsInt()
@IsNotEmpty()
id_plataforma: number;
@IsString()
@IsOptional()
ip: string;
@IsString()
@IsOptional()
ip: string;
@IsString()
@IsNotEmpty()
nombre_equipo: string;
@IsString()
@IsNotEmpty()
nombre_equipo: string;
@IsString()
@IsNotEmpty()
ubicacion: string;
@IsString()
@IsNotEmpty()
ubicacion: string;
}
export class UpdateAreaEquiposDto {
@IsInt()
id_area_ubicacion: number;
@IsBoolean()
activo: boolean;
}