You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
387 B
13 lines
387 B
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsString, MinLength } from 'class-validator';
|
|
|
|
export class LoginUserDto {
|
|
@ApiProperty({ description: '사용자 이름', example: 'username' })
|
|
@IsString()
|
|
readonly name: string;
|
|
|
|
@ApiProperty({ description: '비밀번호', example: 'password' })
|
|
@IsString()
|
|
@MinLength(4)
|
|
readonly password: string;
|
|
}
|
|
|