cc012f32 years ago15 lines · 340 B| 1 | import { ApiProperty } from '@nestjs/swagger'; |
| 2 | import { Type } from 'class-transformer'; |
| 3 | import { UserEntity } from './user.entity'; |
| 4 | |
| 5 | |
| 6 | export class LoginEntity { |
| 7 | @ApiProperty({ |
| 8 | description: 'JWT token which will be used for all other requests', |
| 9 | }) |
| 10 | token: string; |
| 11 | |
| 12 | @ApiProperty({}) |
| 13 | @Type(() => UserEntity) |
| 14 | user: UserEntity; |
| 15 | } |