Hỏi & Đáp
nestjs관련 질문
//entity export class User { @Column () @IsEmail () @ApiProperty ({ example : ' 사용자 이메일 ' , description : ' 사용자 이메일 ' , }) email : string; @Column () @ApiProperty ({ example : ' 사용자 비밀번호 ' , description : ' 비밀번호 ' , }) password : string; @Column () @IsEnum (UserRole) @ApiProperty ({ example : ' 사용자권한 ' , description : ' 사용자 권한 ' , }) role : UserRole ; } // dto export class CreateAccountInput extends PickType (User , [ 'email' , 'password' , 'role' ]) {} 똑같이 하니깐 되는거 같습니다. 해결했습니다.
- Lượt thích
- 0
- Số bình luận
- 1
- Lượt xem
- 298

