refactor
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export interface GetLeagueOwnerSummaryResultDTO {
|
||||
summary: { driver: { id: string; name: string }; rating: number; rank: number } | null;
|
||||
}
|
||||
26
core/racing/application/dto/GetLeagueProtestsResultDTO.ts
Normal file
26
core/racing/application/dto/GetLeagueProtestsResultDTO.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export interface ProtestDTO {
|
||||
id: string;
|
||||
raceId: string;
|
||||
protestingDriverId: string;
|
||||
accusedDriverId: string;
|
||||
submittedAt: Date;
|
||||
description: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface RaceDTO {
|
||||
id: string;
|
||||
name: string;
|
||||
date: string;
|
||||
}
|
||||
|
||||
export interface DriverDTO {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface GetLeagueProtestsResultDTO {
|
||||
protests: ProtestDTO[];
|
||||
races: RaceDTO[];
|
||||
drivers: DriverDTO[];
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface GetLeagueScheduleResultDTO {
|
||||
races: Array<{
|
||||
id: string;
|
||||
name: string;
|
||||
scheduledAt: Date;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user