team rating
This commit is contained in:
18
core/racing/application/use-cases/IRankingUseCase.ts
Normal file
18
core/racing/application/use-cases/IRankingUseCase.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Application Use Case Interface: IRankingUseCase
|
||||
*
|
||||
* Use case for computing driver rankings from standings and results.
|
||||
* This is an application layer concern that orchestrates domain data.
|
||||
*/
|
||||
|
||||
export interface DriverRanking {
|
||||
driverId: string;
|
||||
rating: number;
|
||||
wins: number;
|
||||
totalRaces: number;
|
||||
overallRank: number | null;
|
||||
}
|
||||
|
||||
export interface IRankingUseCase {
|
||||
getAllDriverRankings(): Promise<DriverRanking[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user