website refactor
This commit is contained in:
@@ -54,22 +54,12 @@ export class OnboardingService implements Service {
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
async generateAvatars(input: RequestAvatarGenerationInputDTO): Promise<Result<RequestAvatarGenerationOutputDTO, DomainError>> {
|
||||
try {
|
||||
// TODO: Implement actual API call when available
|
||||
// For now, return mock result
|
||||
const mockResult: RequestAvatarGenerationOutputDTO = {
|
||||
success: true,
|
||||
avatarUrls: [
|
||||
`https://api.example.com/avatars/${input.userId}/1.png`,
|
||||
`https://api.example.com/avatars/${input.userId}/2.png`,
|
||||
`https://api.example.com/avatars/${input.userId}/3.png`,
|
||||
],
|
||||
};
|
||||
return Result.ok(mockResult);
|
||||
} catch (error) {
|
||||
const errorMessage = error instanceof Error ? error.message : 'Failed to generate avatars';
|
||||
return Result.err({ type: 'unknown', message: errorMessage });
|
||||
}
|
||||
// Endpoint not implemented yet - return NotImplemented error
|
||||
return Result.err({
|
||||
type: 'notImplemented',
|
||||
message: 'Avatar generation endpoint is not implemented yet'
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user