UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

16 lines (12 loc) 499 B
import { clientDB } from '@/database/client/db'; import { DataExporterRepos } from '@/database/repositories/dataExporter'; import { BaseClientService } from '@/services/baseClientService'; export class ClientService extends BaseClientService { private get dataExporterRepos(): DataExporterRepos { return new DataExporterRepos(clientDB as any, this.userId); } exportData = async () => { const data = await this.dataExporterRepos.export(); return { data, url: undefined }; }; }