diff --git a/src/user/dto/create-user.dto.ts b/src/user/dto/create-user.dto.ts new file mode 100644 index 0000000..25b13a1 --- /dev/null +++ b/src/user/dto/create-user.dto.ts @@ -0,0 +1,18 @@ +import { IsEmail, IsNotEmpty, IsString } from 'class-validator'; + +export class CreateUserDto { + @IsString() + @IsNotEmpty() + readonly nickname: string; + + @IsString() + readonly slackId: string; + + @IsEmail() + @IsNotEmpty() + readonly email: string; + + @IsString() + @IsNotEmpty() + readonly googleId: string; +} diff --git a/src/user/dto/signup-user.dto.ts b/src/user/dto/signup-user.dto.ts new file mode 100644 index 0000000..1c8629b --- /dev/null +++ b/src/user/dto/signup-user.dto.ts @@ -0,0 +1,10 @@ +import { IsNotEmpty, IsString } from 'class-validator'; + +export class SignUpUserDto { + @IsString() + @IsNotEmpty() + readonly nickname: string; + + @IsString() + readonly slackId: string; +}