chore: 移除类型

This commit is contained in:
手瓜一十雪 2024-08-22 15:42:45 +08:00
parent 2dd0907565
commit 90dddd10a9
2 changed files with 2 additions and 73 deletions

View File

@ -2,7 +2,7 @@ import log4js, { Configuration } from 'log4js';
import { truncateString } from '@/common/utils/helper';
import path from 'node:path';
import chalk from 'chalk';
import { AtType, ChatType, ElementType, ElementWrapper, MessageElement, RawMessage, SelfInfo } from '@/core';
import { AtType, ChatType, ElementType, MessageElement, RawMessage, SelfInfo } from '@/core';
export enum LogLevel {
DEBUG = 'debug',

View File

@ -967,75 +967,4 @@ export interface RawMessage {
records: RawMessage[];
elements: MessageElement[];
}
/**
* type
*/
export type ElementWrapper = {
elementId: string;
elementType: ElementType;
replyElement?: {
sourceMsgIdInRecords: string;
/**
* QQ
*/
senderUid: string;
/**
*
*/
sourceMsgIsIncPic: boolean;
/**
*
*/
sourceMsgText: string;
/**
* msgSeq msgId
*/
replayMsgSeq: string;
};
textElement?: {
atType: AtType;
/**
* @ QQ
*/
atUid: string;
content: string;
/**
* @ UID UID NT
*/
atNtUid: string;
};
picElement?: PicElement;
pttElement?: PttElement;
arkElement?: ArkElement;
grayTipElement?: GrayTipElement;
faceElement?: FaceElement;
videoElement?: VideoElement;
fileElement?: FileElement;
marketFaceElement?: MarketFaceElement;
inlineKeyboardElement?: InlineKeyboardElement;
markdownElement?: MarkdownElement;
multiForwardMsgElement?: MultiForwardMsgElement;
}
}