feat: Add getCacheSessingPathList to NTQQApi

This commit is contained in:
Misa Liu 2024-02-27 18:21:24 +08:00
parent f110c2d3df
commit b548fd3f0e
No known key found for this signature in database
GPG Key ID: F70B23D0A4FED791

View File

@ -40,6 +40,7 @@ export type IPCReceiveDetail = [
export enum NTQQApiClass { export enum NTQQApiClass {
NT_API = "ns-ntApi", NT_API = "ns-ntApi",
FS_API = "ns-FsApi", FS_API = "ns-FsApi",
OS_API = "ns-OsApi",
GLOBAL_DATA = "ns-GlobalDataApi" 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) { static getChatCacheList(type: 1 | 2, pageSize: number = 80, pageIndex: number = 0) {
return new Promise<ChatCacheList>((res, rej) => { return new Promise<ChatCacheList>((res, rej) => {
callNTQQApi<ChatCacheList>({ callNTQQApi<ChatCacheList>({