From 1b288d427e42e12fbc60a57fe0d8be0b7a45ee54 Mon Sep 17 00:00:00 2001 From: MoonLeeeaf <150461955+MoonLeeeaf@users.noreply.github.com> Date: Sat, 22 Mar 2025 22:32:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20types:=20CallbackMessage.Code=20?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/Types.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server/Types.js b/server/Types.js index 2e006d5..d5cf4b0 100644 --- a/server/Types.js +++ b/server/Types.js @@ -14,15 +14,19 @@ export class CallbackMessage { /** * 无权限 */ - static PERMISSION_DENIED = 4 + static PERMISSION_DENIED = 401 + /** + * 不存在 + */ + static NOT_FOUND = 404 /** * 服务端错误 */ - static SERVER_ERROR = 5 + static SERVER_ERROR = 500 /** * 请求成功 */ - static OK = 2 + static OK = 200 } /** * @type { String }