25 lines
352 B
TypeScript
25 lines
352 B
TypeScript
import {IsString, IsNotEmpty,IsNumber } from "class-validator";
|
|
|
|
export class registerDto{
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
usuario: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
nombre: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
contraseña: string;
|
|
|
|
@IsNumber()
|
|
@IsNotEmpty()
|
|
id_tipo_usuario:number;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
correo: string;
|
|
|
|
} |