import { TAxiosEnhancer, TLogLevel } from '../type'; import { FileService, IFileService, LogService, NotifyService, RouterService } from '../service'; import { Security } from '../security'; /** * 全局配置 */ export default class AxiosEnhancer implements TAxiosEnhancer { /** * 日志服务 */ logger: LogService; /** * 配置服务 */ config: { /** * 日志等级 [0: 全部, 1: 错误, 2: 警告, 3: 调试] */ logLevel: (level: TLogLevel) => void; /** * 是否启用日志 */ logEnabled: (enabled: boolean) => void; securityEnabled: (enabled: boolean) => void; }; /** * 通知服务 */ notify: NotifyService; /** * 路由服务 */ router: RouterService; /** * 安全服务 */ security: Security; /** * 文件服务 */ filer: FileService; constructor(logger: LogService, notify: NotifyService, router: RouterService, security: Security, filer: FileService); start(): void; setFiler(filer: IFileService): void; }