wip
This commit is contained in:
22
packages/racing/application/presenters/IAllTeamsPresenter.ts
Normal file
22
packages/racing/application/presenters/IAllTeamsPresenter.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { Team } from '../../domain/entities/Team';
|
||||
|
||||
export interface TeamListItemViewModel {
|
||||
id: string;
|
||||
name: string;
|
||||
tag: string;
|
||||
description: string;
|
||||
memberCount: number;
|
||||
leagues: string[];
|
||||
specialization?: 'endurance' | 'sprint' | 'mixed';
|
||||
region?: string;
|
||||
languages?: string[];
|
||||
}
|
||||
|
||||
export interface AllTeamsViewModel {
|
||||
teams: TeamListItemViewModel[];
|
||||
totalCount: number;
|
||||
}
|
||||
|
||||
export interface IAllTeamsPresenter {
|
||||
present(teams: Team[]): AllTeamsViewModel;
|
||||
}
|
||||
Reference in New Issue
Block a user