refactor: move Ob11Adapter to index.ts

This commit is contained in:
Wesley F. Young
2024-08-12 10:45:55 +08:00
parent f24e19ee1d
commit 5dcaf67ef2
11 changed files with 420 additions and 411 deletions

View File

@@ -4,8 +4,8 @@ import { createHmac } from 'crypto';
import { LogWrapper } from '@/common/utils/log';
import { QuickAction, QuickActionEvent } from '../types';
import { NapCatCore } from '@/core';
import { NapCatOneBot11Adapter } from '../main';
import { handleQuickOperation } from '../helper/quick';
import { NapCatOneBot11Adapter } from '@/onebot';
export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter {
url: string;

View File

@@ -3,10 +3,10 @@ import { WebSocket } from 'ws';
import BaseAction from '@/onebot/action/BaseAction';
import { OB11HeartbeatEvent } from '../event/meta/OB11HeartbeatEvent';
import { NapCatCore } from '@/core';
import { NapCatOneBot11Adapter } from '../main';
import { ActionName } from '@/onebot/action/types';
import { OB11Response } from '@/onebot/action/OB11Response';
import { LogWrapper } from '@/common/utils/log';
import { NapCatOneBot11Adapter } from '@/onebot';
export class OB11ActiveWebSocketAdapter implements IOB11NetworkAdapter {
url: string;

View File

@@ -3,8 +3,8 @@ import BaseAction from '@/onebot/action/BaseAction';
import express, { Express, Request, Response } from 'express';
import http from 'http';
import { NapCatCore } from '@/core';
import { NapCatOneBot11Adapter } from '../main';
import { OB11Response } from '../action/OB11Response';
import { NapCatOneBot11Adapter } from '@/onebot';
export class OB11PassiveHttpAdapter implements IOB11NetworkAdapter {
token: string;