presenter refactoring

This commit is contained in:
2025-12-20 17:06:11 +01:00
parent 92be9d2e1b
commit e9d6f90bb2
109 changed files with 4159 additions and 1283 deletions

View File

@@ -1,8 +1,20 @@
import type { TransferLeagueOwnershipOutputPort } from '@core/racing/application/ports/output/TransferLeagueOwnershipOutputPort';
import type { TransferLeagueOwnershipOutputDTO } from '../dtos/TransferLeagueOwnershipOutputDTO';
export function mapTransferLeagueOwnershipOutputPortToDTO(port: TransferLeagueOwnershipOutputPort): TransferLeagueOwnershipOutputDTO {
return {
success: port.success,
};
export class TransferLeagueOwnershipPresenter {
private result: TransferLeagueOwnershipOutputDTO | null = null;
reset() {
this.result = null;
}
present(output: TransferLeagueOwnershipOutputPort) {
this.result = {
success: output.success,
};
}
getViewModel(): TransferLeagueOwnershipOutputDTO | null {
return this.result;
}
}