Skip to content

Commit

Permalink
add: user dto
Browse files Browse the repository at this point in the history
  • Loading branch information
adiCacti committed May 16, 2022
1 parent b4a9e44 commit 65af124
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/user/dto/edit-user.dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { IsEmail, IsOptional, IsString } from 'class-validator';

export class EditUserDto {
@IsEmail()
@IsOptional()
email?: string;

@IsString()
@IsOptional()
firstName?: string;

@IsString()
@IsOptional()
lastName?: string;
}
1 change: 1 addition & 0 deletions src/user/dto/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './edit-user.dto';

0 comments on commit 65af124

Please sign in to comment.