Files
LangBot/web/src/app/infra/http/HttpClient.ts
2025-08-17 14:30:22 +08:00

18 lines
529 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* @deprecated 此文件仅用于向后兼容。请使用新的 client
* - import { backendClient } from '@/app/infra/http'
* - import { getCloudServiceClient } from '@/app/infra/http'
*/
// 重新导出新的客户端实现,保持向后兼容
export {
backendClient as httpClient,
systemInfo,
type ResponseData,
type RequestConfig,
} from './index';
// 为了兼容性,重新导出 BackendClient 作为 HttpClient
import { BackendClient } from './BackendClient';
export const HttpClient = BackendClient;