21 lines
433 B
TypeScript
21 lines
433 B
TypeScript
export interface GetLeagueStandingsUseCase {
|
|
execute(leagueId: string): Promise<LeagueStandingsViewModel>;
|
|
}
|
|
|
|
export interface StandingItemViewModel {
|
|
id: string;
|
|
leagueId: string;
|
|
seasonId: string;
|
|
driverId: string;
|
|
position: number;
|
|
points: number;
|
|
wins: number;
|
|
podiums: number;
|
|
racesCompleted: number;
|
|
}
|
|
|
|
export interface LeagueStandingsViewModel {
|
|
leagueId: string;
|
|
standings: StandingItemViewModel[];
|
|
}
|