refactor page to use services
This commit is contained in:
@@ -26,8 +26,8 @@ export class SponsorshipService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get sponsor sponsorships with view model transformation
|
||||
*/
|
||||
* Get sponsor sponsorships with view model transformation
|
||||
*/
|
||||
async getSponsorSponsorships(sponsorId: string): Promise<SponsorSponsorshipsViewModel | null> {
|
||||
const dto = await this.apiClient.getSponsorships(sponsorId);
|
||||
if (!dto) {
|
||||
@@ -35,4 +35,13 @@ export class SponsorshipService {
|
||||
}
|
||||
return new SponsorSponsorshipsViewModel(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get pending sponsorship requests for an entity
|
||||
*/
|
||||
async getPendingSponsorshipRequests(params: { entityType: string; entityId: string }): Promise<{ requests: any[] }> {
|
||||
// TODO: Implement API call
|
||||
// For now, return empty
|
||||
return { requests: [] };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user