chore: optimize imports

This commit is contained in:
Seijo Cecilia
2024-08-27 13:59:47 +08:00
parent 6384b50bae
commit c8b6a158f1
15 changed files with 20 additions and 25 deletions

View File

@@ -2,7 +2,7 @@ import BaseAction from '../BaseAction';
import fs from 'fs/promises';
import { UUIDConverter } from '@/common/helper';
import { ActionName } from '../types';
import { ChatType, ElementType, FileElement, Peer, RawMessage, VideoElement } from '@/core/entities';
import { ChatType, ElementType, Peer, RawMessage } from '@/core/entities';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
export interface GetFilePayload {

View File

@@ -53,6 +53,5 @@ export default class SetGroupPortrait extends BaseAction<Payload, any> {
}
throw `头像${payload.file}设置失败,无法获取头像,文件可能不存在`;
}
return null;
}
}

View File

@@ -2,7 +2,6 @@ import { ActionName } from '../types';
import BaseAction from '../BaseAction';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import { MessageUnique } from '@/common/message-unique';
import { NodeIKernelMsgListener } from '@/core';
const SchemaData = {
type: 'object',