From a1eddf813d25ff846b07c708e79195bdbe7c3ff9 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 4 Oct 2025 14:11:35 +0800 Subject: [PATCH] chore: declare User.getMyRecentChats --- client/api/ApiDeclare.ts | 10 ++++++---- server/api/ApiDeclare.ts | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/client/api/ApiDeclare.ts b/client/api/ApiDeclare.ts index 1b70459..42d9b20 100644 --- a/client/api/ApiDeclare.ts +++ b/client/api/ApiDeclare.ts @@ -13,17 +13,19 @@ export type CallMethod = "User.addContact" | "User.removeContacts" | + "User.getMyRecentChats" | + "Chat.getInfo" | "Chat.sendMessage" | "Chat.getMessageHistory" | "Chat.uploadFile" +export type ClientEvent = + "Client.onMessage" + export const CallableMethodBeforeAuth = [ "User.auth", "User.register", "User.login", -] - -export type ClientEvent = - "Client.onMessage" +] \ No newline at end of file diff --git a/server/api/ApiDeclare.ts b/server/api/ApiDeclare.ts index 4edba17..90ebca7 100644 --- a/server/api/ApiDeclare.ts +++ b/server/api/ApiDeclare.ts @@ -13,6 +13,8 @@ export type CallMethod = "User.addContact" | "User.removeContacts" | + "User.getMyRecentChats" | + "Chat.getInfo" | "Chat.sendMessage" | "Chat.getMessageHistory" |