update swagger

This commit is contained in:
2026-07-02 20:21:12 +03:30
parent 8e2e43e12b
commit 1f06b378e6
18 changed files with 346 additions and 34 deletions
+30
View File
@@ -0,0 +1,30 @@
import { ApiProperty } from '@nestjs/swagger';
import { UserRole } from '../../users/enums/user-role.enum';
class AuthUserResponseDto {
@ApiProperty({ format: 'uuid' })
id: string;
@ApiProperty()
firstName: string;
@ApiProperty()
lastName: string;
@ApiProperty()
mobile: string;
@ApiProperty({ enum: UserRole })
role: UserRole;
}
export class AuthTokensResponseDto {
@ApiProperty()
accessToken: string;
@ApiProperty()
refreshToken: string;
@ApiProperty({ type: AuthUserResponseDto })
user: AuthUserResponseDto;
}