32 lines
516 B
TypeScript
32 lines
516 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNumber, IsString } from 'class-validator';
|
|
|
|
export class DashboardRecentResultDTO {
|
|
@ApiProperty()
|
|
@IsString()
|
|
raceId!: string;
|
|
|
|
@ApiProperty()
|
|
@IsString()
|
|
raceName!: string;
|
|
|
|
@ApiProperty()
|
|
@IsString()
|
|
leagueId!: string;
|
|
|
|
@ApiProperty()
|
|
@IsString()
|
|
leagueName!: string;
|
|
|
|
@ApiProperty()
|
|
@IsString()
|
|
finishedAt!: string;
|
|
|
|
@ApiProperty()
|
|
@IsNumber()
|
|
position!: number;
|
|
|
|
@ApiProperty()
|
|
@IsNumber()
|
|
incidents!: number;
|
|
} |