From 2db989918414b05bb94e1b2da2c910a4856fbde2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 26 Jul 2024 16:26:47 +0800 Subject: [PATCH] chore: type --- src/core/src/services/NodeIKernelMsgService.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/src/services/NodeIKernelMsgService.ts b/src/core/src/services/NodeIKernelMsgService.ts index ba0cc6a5..80e74a11 100644 --- a/src/core/src/services/NodeIKernelMsgService.ts +++ b/src/core/src/services/NodeIKernelMsgService.ts @@ -73,7 +73,7 @@ export interface NodeIKernelMsgService { cancelSendMsg(...args: unknown[]): unknown; - switchToOfflineSendMsg(...args: unknown[]): unknown; + switchToOfflineSendMsg(peer: Peer, MsgId: string): unknown; reqToOfflineSendMsg(...args: unknown[]): unknown; @@ -166,7 +166,7 @@ export interface NodeIKernelMsgService { appid: unknown }): Promise; - getMsgsBySeqRange(peer: Peer, startSeq: string, endSeq: string):Promise; + getMsgsBySeqRange(peer: Peer, startSeq: string, endSeq: string): Promise; getMsgsBySeqAndCount(peer: Peer, seq: string, count: number, desc: boolean, unknownArg: boolean): Promise; @@ -361,7 +361,7 @@ export interface NodeIKernelMsgService { setGuildTabUserFlag(...args: unknown[]): unknown; - setBuildMode(...args: unknown[]): unknown; + setBuildMode(flag:number/*0 1 3*/): unknown; setConfigurationServiceData(...args: unknown[]): unknown; @@ -485,7 +485,7 @@ export interface NodeIKernelMsgService { setMsgEmojiLikes(...args: unknown[]): unknown; - getMsgEmojiLikesList(...args: unknown[]): unknown; + getMsgEmojiLikesList(peer: Peer, msgSeq: string, emojiId: string, emojiType: string, cookie: string, bForward: boolean, number: number): Promise; setMsgEmojiLikesForRole(...args: unknown[]): unknown; @@ -513,7 +513,7 @@ export interface NodeIKernelMsgService { queryFirstRoamMsg(...args: unknown[]): unknown; - fetchLongMsg(...args: unknown[]): unknown; + fetchLongMsg(peer: Peer, msgId: string): unknown; fetchLongMsgWithCb(...args: unknown[]): unknown; @@ -547,9 +547,9 @@ export interface NodeIKernelMsgService { deleteReplyDraft(...args: unknown[]): unknown; - getFirstUnreadAtMsg(...args: unknown[]): unknown; + getFirstUnreadAtMsg(peer: Peer): unknown; - clearMsgRecords(...args: unknown[]): unknown;//设置已读后调用我觉得比较好 清理记录 + clearMsgRecords(...args: unknown[]): unknown;//设置已读后调用我觉得比较好 清理记录 现在别了 IsExistOldDb(...args: unknown[]): unknown; @@ -569,7 +569,7 @@ export interface NodeIKernelMsgService { getCurChatImportStatusByUin(...args: unknown[]): unknown; - getDataImportUserLevel(...args: unknown[]): unknown; + getDataImportUserLevel(): unknown; getMsgQRCode(...args: unknown[]): unknown; @@ -624,7 +624,7 @@ export interface NodeIKernelMsgService { getABatchOfContactMsgBoxInfo(...args: unknown[]): unknown; - insertMsgToMsgBox(...args: unknown[]): unknown; + insertMsgToMsgBox(peer: Peer, msgId: string, arg: 2006): unknown; isHitEmojiKeyword(...args: unknown[]): unknown;