From 73a1536df73145e535e4395a7093c52dced81968 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 13 Sep 2025 00:38:17 +0800 Subject: [PATCH] chore: add new Api declaretion --- client/api/ApiDeclare.ts | 10 +++++++++- server/api/ApiDeclare.ts | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/client/api/ApiDeclare.ts b/client/api/ApiDeclare.ts index fc84148..d8d6174 100644 --- a/client/api/ApiDeclare.ts +++ b/client/api/ApiDeclare.ts @@ -1,7 +1,15 @@ export type CallMethod = "User.auth" | "User.register" | - "User.login" + "User.login" | + + "User.setNickName" | + "User.setUserName" | + "User.setAvatar" | + "User.getMyInfo" | + + "Chat.sendMessage" | + "Chat.getMessageHistory" export type ClientEvent = "Client.onMessage" diff --git a/server/api/ApiDeclare.ts b/server/api/ApiDeclare.ts index 11886c7..d8d6174 100644 --- a/server/api/ApiDeclare.ts +++ b/server/api/ApiDeclare.ts @@ -3,7 +3,10 @@ export type CallMethod = "User.register" | "User.login" | + "User.setNickName" | + "User.setUserName" | "User.setAvatar" | + "User.getMyInfo" | "Chat.sendMessage" | "Chat.getMessageHistory"