services refactor

This commit is contained in:
2025-12-17 22:17:02 +01:00
parent 26f7a2b6aa
commit 055a7f67b5
93 changed files with 7434 additions and 659 deletions

View File

@@ -0,0 +1,12 @@
import type { AllTeamsDto } from '../dtos';
import { TeamSummaryViewModel } from '../view-models';
/**
* Team List Presenter
* Transforms AllTeamsDto to array of TeamSummaryViewModel
*/
export class TeamListPresenter {
present(dto: AllTeamsDto): TeamSummaryViewModel[] {
return dto.teams.map(team => new TeamSummaryViewModel(team));
}
}