forked from Ynov/ptitspas-ynov-back
about to move dtos
This commit is contained in:
parent
b052622c6f
commit
3633b88902
@ -1,10 +0,0 @@
|
||||
import { IsEmail, IsString, MinLength } from "class-validator";
|
||||
|
||||
export class LoginDto {
|
||||
@IsEmail()
|
||||
email: string;
|
||||
|
||||
@IsString()
|
||||
@MinLength(6)
|
||||
password: string;
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
import { IsUUID, IsOptional } from 'class-validator';
|
||||
|
||||
export class CreateParentDto {
|
||||
@IsUUID()
|
||||
user_id: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsUUID()
|
||||
co_parent_id?: string;
|
||||
}
|
||||
@ -1,4 +0,0 @@
|
||||
import { CreateParentDto } from "./create_parents.dto";
|
||||
import { PartialType } from '@nestjs/mapped-types';
|
||||
|
||||
export class UpdateParentsDto extends PartialType(CreateParentDto) {}
|
||||
Loading…
x
Reference in New Issue
Block a user