refactor: 项目结构

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

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';
@@ -7,7 +7,7 @@ class GetLoginInfo extends OneBotAction<null, OB11User> {
actionName = ActionName.GetLoginInfo;
async _handle(payload: null) {
return OB11Entities.selfInfo(this.core.selfInfo);
return OB11Construct.selfInfo(this.core.selfInfo);
}
}