14 lines
267 B
TypeScript
14 lines
267 B
TypeScript
import { ApiProperty } from '@nestjs/swagger'
|
|
import { IsNotEmpty, IsString, MinLength } from 'class-validator'
|
|
|
|
export class LoginDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@ApiProperty()
|
|
name: string
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@ApiProperty()
|
|
password: string
|
|
} |