From 578b3507fdf5ccc022adb11d720cec09322c9234 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Fri, 21 Nov 2025 23:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-protocol/ApiDeclare.ts | 20 ++++++++++++++++---- client/api/ApiDeclare.ts | 20 ++++++++++++++++---- server/api/ApiDeclare.ts | 27 +++++++++++++++++++++++---- 3 files changed, 55 insertions(+), 12 deletions(-) diff --git a/client-protocol/ApiDeclare.ts b/client-protocol/ApiDeclare.ts index 6245120..f288735 100644 --- a/client-protocol/ApiDeclare.ts +++ b/client-protocol/ApiDeclare.ts @@ -1,42 +1,54 @@ export type CallMethod = + // 用户验证 "User.auth" | "User.register" | "User.login" | "User.refreshAccessToken" | + // 账号 "User.setAvatar" | "User.updateProfile" | "User.getMyInfo" | "User.resetPassword" | + // 用户资料 "User.getInfo" | + // 收藏对话列表 "User.getMyContacts" | "User.addContacts" | "User.removeContacts" | + // 最近对话列表 "User.getMyRecentChats" | + // 对话信息 "Chat.getInfo" | + "Chat.getAnotherUserIdFromPrivate" | + "Chat.getMembers" | + // 对话设置 "Chat.updateSettings" | "Chat.setAvatar" | + // 对话创建 "Chat.createGroup" | - "Chat.getIdForPrivate" | - "Chat.getAnotherUserIdFromPrivate" | + // 入群请求 "Chat.processJoinRequest" | "Chat.sendJoinRequest" | "Chat.getJoinRequests" | + // 对话消息 "Chat.sendMessage" | - "Chat.getMessageHistory" | + "Chat.getMessageHistory" - "Chat.uploadFile" + // (废弃) 文件上传 + // "Chat.uploadFile" export type ClientEvent = + // 对话收消息 "Client.onMessage" export const CallableMethodBeforeAuth = [ diff --git a/client/api/ApiDeclare.ts b/client/api/ApiDeclare.ts index 6245120..f288735 100644 --- a/client/api/ApiDeclare.ts +++ b/client/api/ApiDeclare.ts @@ -1,42 +1,54 @@ export type CallMethod = + // 用户验证 "User.auth" | "User.register" | "User.login" | "User.refreshAccessToken" | + // 账号 "User.setAvatar" | "User.updateProfile" | "User.getMyInfo" | "User.resetPassword" | + // 用户资料 "User.getInfo" | + // 收藏对话列表 "User.getMyContacts" | "User.addContacts" | "User.removeContacts" | + // 最近对话列表 "User.getMyRecentChats" | + // 对话信息 "Chat.getInfo" | + "Chat.getAnotherUserIdFromPrivate" | + "Chat.getMembers" | + // 对话设置 "Chat.updateSettings" | "Chat.setAvatar" | + // 对话创建 "Chat.createGroup" | - "Chat.getIdForPrivate" | - "Chat.getAnotherUserIdFromPrivate" | + // 入群请求 "Chat.processJoinRequest" | "Chat.sendJoinRequest" | "Chat.getJoinRequests" | + // 对话消息 "Chat.sendMessage" | - "Chat.getMessageHistory" | + "Chat.getMessageHistory" - "Chat.uploadFile" + // (废弃) 文件上传 + // "Chat.uploadFile" export type ClientEvent = + // 对话收消息 "Client.onMessage" export const CallableMethodBeforeAuth = [ diff --git a/server/api/ApiDeclare.ts b/server/api/ApiDeclare.ts index a4c7766..f288735 100644 --- a/server/api/ApiDeclare.ts +++ b/server/api/ApiDeclare.ts @@ -1,40 +1,59 @@ export type CallMethod = + // 用户验证 "User.auth" | "User.register" | "User.login" | "User.refreshAccessToken" | + // 账号 "User.setAvatar" | "User.updateProfile" | "User.getMyInfo" | "User.resetPassword" | + // 用户资料 "User.getInfo" | + // 收藏对话列表 "User.getMyContacts" | "User.addContacts" | "User.removeContacts" | + // 最近对话列表 "User.getMyRecentChats" | + // 对话信息 "Chat.getInfo" | + "Chat.getAnotherUserIdFromPrivate" | + "Chat.getMembers" | + // 对话设置 "Chat.updateSettings" | "Chat.setAvatar" | + // 对话创建 "Chat.createGroup" | - "Chat.getIdForPrivate" | - "Chat.getAnotherUserIdFromPrivate" | + // 入群请求 "Chat.processJoinRequest" | "Chat.sendJoinRequest" | "Chat.getJoinRequests" | + // 对话消息 "Chat.sendMessage" | - "Chat.getMessageHistory" | + "Chat.getMessageHistory" - "Chat.uploadFile" + // (废弃) 文件上传 + // "Chat.uploadFile" export type ClientEvent = + // 对话收消息 "Client.onMessage" + +export const CallableMethodBeforeAuth = [ + "User.auth", + "User.register", + "User.login", + "User.refreshAccessToken", +] \ No newline at end of file