From bc08cd3c8c48994bf8bb16aedaf5a294ac74ae14 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 4 Oct 2025 15:32:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=9B=B4=E6=8E=A5=E5=92=8C=E5=AF=B9?= =?UTF-8?q?=E6=96=B9=E7=A7=81=E8=81=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/api/ApiDeclare.ts | 3 ++- server/api/ApiDeclare.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/api/ApiDeclare.ts b/client/api/ApiDeclare.ts index 42d9b20..7b59b92 100644 --- a/client/api/ApiDeclare.ts +++ b/client/api/ApiDeclare.ts @@ -16,6 +16,7 @@ export type CallMethod = "User.getMyRecentChats" | "Chat.getInfo" | + "Chat.getIdForPrivate" | "Chat.sendMessage" | "Chat.getMessageHistory" | @@ -24,7 +25,7 @@ export type CallMethod = export type ClientEvent = "Client.onMessage" -export const CallableMethodBeforeAuth = [ + export const CallableMethodBeforeAuth = [ "User.auth", "User.register", "User.login", diff --git a/server/api/ApiDeclare.ts b/server/api/ApiDeclare.ts index 90ebca7..2e818fb 100644 --- a/server/api/ApiDeclare.ts +++ b/server/api/ApiDeclare.ts @@ -16,6 +16,7 @@ export type CallMethod = "User.getMyRecentChats" | "Chat.getInfo" | + "Chat.getIdForPrivate" | "Chat.sendMessage" | "Chat.getMessageHistory" |