refactor
This commit is contained in:
20
core/racing/application/presenters/IGetSponsorsPresenter.ts
Normal file
20
core/racing/application/presenters/IGetSponsorsPresenter.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { Presenter } from '@gridpilot/shared/presentation/Presenter';
|
||||
|
||||
export interface SponsorDto {
|
||||
id: string;
|
||||
name: string;
|
||||
contactEmail: string;
|
||||
websiteUrl: string | undefined;
|
||||
logoUrl: string | undefined;
|
||||
createdAt: Date;
|
||||
}
|
||||
|
||||
export interface GetSponsorsViewModel {
|
||||
sponsors: SponsorDto[];
|
||||
}
|
||||
|
||||
export interface GetSponsorsResultDTO {
|
||||
sponsors: SponsorDto[];
|
||||
}
|
||||
|
||||
export interface IGetSponsorsPresenter extends Presenter<GetSponsorsResultDTO, GetSponsorsViewModel> {}
|
||||
Reference in New Issue
Block a user