module cleanup

This commit is contained in:
2025-12-19 01:22:45 +01:00
parent d617654928
commit d0fac9e6c1
135 changed files with 5104 additions and 1315 deletions

View File

@@ -0,0 +1,21 @@
import { ICreateLeaguePresenter, CreateLeagueResultDTO, CreateLeagueViewModel } from '@core/racing/application/presenters/ICreateLeaguePresenter';
export class CreateLeaguePresenter implements ICreateLeaguePresenter {
private result: CreateLeagueViewModel | null = null;
reset() {
this.result = null;
}
present(dto: CreateLeagueResultDTO): void {
this.result = {
leagueId: dto.leagueId,
success: true,
};
}
getViewModel(): CreateLeagueViewModel {
if (!this.result) throw new Error('Presenter not presented');
return this.result;
}
}