refactor to adapters
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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[];
|
||||
}
|
||||
Reference in New Issue
Block a user