chore: OBAPI
This commit is contained in:
1 parent
67d92c61f7
commit
5e79994ec2
16 files changed
+28
-165
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user