From b548fd3f0e0040176c3b1627a7e3adc4bfaea7de Mon Sep 17 00:00:00 2001 From: Misa Liu Date: Tue, 27 Feb 2024 18:21:24 +0800 Subject: [PATCH] feat: Add `getCacheSessingPathList` to NTQQApi --- src/ntqqapi/ntcall.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ntqqapi/ntcall.ts b/src/ntqqapi/ntcall.ts index a85056e..3b5bc0a 100644 --- a/src/ntqqapi/ntcall.ts +++ b/src/ntqqapi/ntcall.ts @@ -40,6 +40,7 @@ export type IPCReceiveDetail = [ export enum NTQQApiClass { NT_API = "ns-ntApi", FS_API = "ns-FsApi", + OS_API = "ns-OsApi", GLOBAL_DATA = "ns-GlobalDataApi" } @@ -722,6 +723,16 @@ export class NTQQApi { }); } + static getCacheSessionPathList() { + return callNTQQApi<{ + key: string, + value: string + }[]>({ + className: NTQQApiClass.OS_API, + methodName: NTQQApiMethod.CACHE_PATH_SESSION, + }); + } + static getChatCacheList(type: 1 | 2, pageSize: number = 80, pageIndex: number = 0) { return new Promise((res, rej) => { callNTQQApi({