20 lines
614 B
TypeScript
20 lines
614 B
TypeScript
import { Result } from '@/lib/contracts/Result';
|
|
import { DomainError } from '@/lib/contracts/services/Service';
|
|
|
|
/**
|
|
* Landing Service - DTO Only
|
|
*
|
|
* Returns raw API DTOs. No ViewModels or UX logic.
|
|
* All client-side presentation logic must be handled by hooks/components.
|
|
*/
|
|
export class LandingService {
|
|
constructor(private readonly apiClient: any) {}
|
|
|
|
async getLandingData(): Promise<any> {
|
|
return { featuredLeagues: [], stats: {} };
|
|
}
|
|
|
|
async signup(email: string): Promise<Result<void, DomainError>> {
|
|
return Result.err({ type: 'notImplemented', message: 'Email signup endpoint' });
|
|
}
|
|
} |