website refactor
This commit is contained in:
17
apps/website/lib/services/teams/TeamService.ts
Normal file
17
apps/website/lib/services/teams/TeamService.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Team 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 TeamService {
|
||||
constructor(private readonly apiClient: any) {}
|
||||
|
||||
async getTeamById(teamId: string): Promise<any> {
|
||||
return { id: teamId, name: 'Team' };
|
||||
}
|
||||
|
||||
async getTeamsByLeagueId(leagueId: string): Promise<any> {
|
||||
return { teams: [] };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user