This commit is contained in:
2025-12-04 15:15:24 +01:00
parent b7d5551ea7
commit c698a0b893
119 changed files with 1167 additions and 2652 deletions

View File

@@ -0,0 +1,13 @@
import type { ITeamRepository } from '../../domain/repositories/ITeamRepository';
import type { GetAllTeamsQueryResultDTO } from '../dto/TeamCommandAndQueryDTO';
export class GetAllTeamsQuery {
constructor(
private readonly teamRepository: ITeamRepository,
) {}
async execute(): Promise<GetAllTeamsQueryResultDTO> {
const teams = await this.teamRepository.findAll();
return teams;
}
}