refactor
This commit is contained in:
20
core/racing/application/presenters/IGetAllRacesPresenter.ts
Normal file
20
core/racing/application/presenters/IGetAllRacesPresenter.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { Presenter } from '@gridpilot/shared/presentation/Presenter';
|
||||
|
||||
export interface RaceViewModel {
|
||||
id: string;
|
||||
name: string;
|
||||
date: string;
|
||||
leagueName?: string;
|
||||
}
|
||||
|
||||
export interface AllRacesPageViewModel {
|
||||
races: RaceViewModel[];
|
||||
totalCount: number;
|
||||
}
|
||||
|
||||
export interface GetAllRacesResultDTO {
|
||||
races: RaceViewModel[];
|
||||
totalCount: number;
|
||||
}
|
||||
|
||||
export interface IGetAllRacesPresenter extends Presenter<GetAllRacesResultDTO, AllRacesPageViewModel> {}
|
||||
Reference in New Issue
Block a user