refactor: 项目结构

This commit is contained in:
手瓜一十雪 committed 2024-11-21 11:52:50 +08:00
1 parent 831882f8ea
commit 4dfc72a355
15 files changed
+45 -71

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import { OB11User } from '@/onebot';
import { OB11Entities } from '@/onebot/entities';
import { OB11Construct } from '@/onebot/helper/data';
import { OneBotAction } from '@/onebot/action/OneBotAction';
import { ActionName } from '@/onebot/action/router';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
@@ -19,6 +19,6 @@ export default class GetFriendList extends OneBotAction<Payload, OB11User[]> {
async _handle(payload: Payload) {
//全新逻辑
return OB11Entities.friendsV2(await this.core.apis.FriendApi.getBuddyV2(typeof payload.no_cache === 'string' ? payload.no_cache === 'true' : !!payload.no_cache));
return OB11Construct.friends(await this.core.apis.FriendApi.getBuddy(typeof payload.no_cache === 'string' ? payload.no_cache === 'true' : !!payload.no_cache));
}
}