feat: 优化架构
Some checks failed
Frontend CI / build-and-push-web (push) Successful in 2m39s
Frontend CI / ota-android (push) Successful in 10m22s
Frontend CI / build-android-apk (push) Has been cancelled

This commit is contained in:
lafay
2026-04-13 01:30:37 +08:00
parent 2adc9360a5
commit fe6a03da5d
93 changed files with 386 additions and 211 deletions

View File

@@ -3,7 +3,7 @@
* 封装所有 API 调用,统一错误处理和请求拦截
*/
import { api, ApiResponse, ApiError } from '../../services/api';
import { api, ApiResponse, ApiError } from '@/services/core';
import { IApiDataSource, DataSourceError } from './interfaces';
export class ApiDataSource implements IApiDataSource {

View File

@@ -14,7 +14,7 @@ import {
WSGroupTypingMessage,
WSGroupNoticeMessage,
WSMessageType,
} from '../../services/wsService';
} from '@/services/core';
// 事件处理器类型
type EventHandler<T> = (data: T) => void;

View File

@@ -7,7 +7,7 @@ import type {
MaterialFile,
MaterialFileType,
} from '../../types/material';
import { api } from '../../services/api';
import { api } from '@/services/core';
// ==================== 接口定义 ====================