refactor
This commit is contained in:
16
apps/api/src/domain/race/dtos/RaceResultsDetailDTO.ts
Normal file
16
apps/api/src/domain/race/dtos/RaceResultsDetailDTO.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString } from 'class-validator';
|
||||
import { RaceResultDto } from './RaceResultDto';
|
||||
|
||||
export class RaceResultsDetailDTO {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
raceId!: string;
|
||||
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
track!: string;
|
||||
|
||||
@ApiProperty({ type: [RaceResultDto] })
|
||||
results!: RaceResultDto[];
|
||||
}
|
||||
Reference in New Issue
Block a user