website refactor
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
* This is an application layer concern that orchestrates domain data.
|
||||
*/
|
||||
|
||||
import type { StandingRepository } from '../../domain/repositories/StandingRepository';
|
||||
import type { DriverRepository } from '../../domain/repositories/DriverRepository';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
export interface DriverRanking {
|
||||
driverId: string;
|
||||
rating: number;
|
||||
@@ -13,6 +17,15 @@ export interface DriverRanking {
|
||||
overallRank: number | null;
|
||||
}
|
||||
|
||||
export interface RankingUseCase {
|
||||
getAllDriverRankings(): Promise<DriverRanking[]>;
|
||||
export class RankingUseCase {
|
||||
constructor(
|
||||
_standingRepository: StandingRepository,
|
||||
_driverRepository: DriverRepository,
|
||||
private readonly _logger: Logger,
|
||||
) {}
|
||||
|
||||
async getAllDriverRankings(): Promise<DriverRanking[]> {
|
||||
this._logger.debug('Getting all driver rankings');
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user