new ep actualizar area
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user