feat: raw api add

This commit is contained in:
手瓜一十雪 committed 2024-07-20 17:09:38 +08:00
1 parent 687aa0f363
commit 714d7d72eb
7 files changed
+24 -6

No files matched your search

+3
View File
@@ -241,6 +241,9 @@ export class NTQQUserApi {
// }
return uin;
}
static async getRecentContactList() {
return await napCatCore.session.getRecentContactService().getRecentContactList();
}
static async getUserDetailInfoByUin(Uin: string) {
return NTEventDispatch.CallNoListenerEvent
<(Uin: string) => Promise<UserDetailInfoByUin>>(
@@ -253,7 +253,7 @@ export interface NodeIKernelMsgService {
pageLimit: number,
isReverseOrder: boolean,
isIncludeCurrent: boolean
}):Promise<unknown>;
}): Promise<unknown>;
queryPicOrVideoMsgsDesktop(...args: unknown[]): unknown;
@@ -356,7 +356,7 @@ export interface NodeIKernelMsgService {
getFileThumbSavePath(...args: unknown[]): unknown;
translatePtt2Text(...args: unknown[]): unknown;
translatePtt2Text(j2: string, e2: {}, e3: {}): unknown;
setPttPlayedState(...args: unknown[]): unknown;
@@ -43,7 +43,7 @@ export interface NodeIKernelRecentContactService {
deleteRecentContactsVer2(...args: unknown[]): unknown; // 1 arguments
getRecentContactList(): unknown;
getRecentContactList(): Promise<any>;
getMsgUnreadCount(): unknown;
+2 -1
View File
@@ -39,6 +39,7 @@ import { NodeIKernelTianShuService } from './services/NodeIKernelTianShuService'
import { NodeIKernelUnitedConfigService } from './services/NodeIKernelUnitedConfigService';
import { NodeIKernelSearchService } from './services/NodeIKernelSearchService';
import { NodeIKernelCollectionService } from './services/NodeIKernelCollectionService';
import { NodeIKernelRecentContactService } from './services/NodeIKernelRecentContactService';
const __filename = fileURLToPath(import.meta.url);
@@ -236,7 +237,7 @@ export interface NodeIQQNTWrapperSession {
getAVSDKService(): unknown;
getRecentContactService(): unknown;
getRecentContactService(): NodeIKernelRecentContactService;
getConfigMgrService(): unknown;
}