chore: OBAPI

This commit is contained in:
手瓜一十雪 committed 2024-08-09 16:22:35 +08:00
1 parent 67d92c61f7
commit 5e79994ec2
16 files changed
+28 -165

No files matched your search

+3 -5
View File
@@ -1,16 +1,14 @@
import { selfInfo } from '@/core/data';
import { OB11User } from '../../types';
import { OB11Constructor } from '../../constructor';
import { OB11Constructor } from '../../helper/constructor';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { napCatCore } from '@/core';
class GetLoginInfo extends BaseAction<null, OB11User> {
actionName = ActionName.GetLoginInfo;
protected async _handle(payload: null) {
return OB11Constructor.selfInfo(selfInfo);
return OB11Constructor.selfInfo(this.CoreContext.selfInfo);
}
}