From c0df99bfd81651307322367f4b8348143b709a1f Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Fri, 20 Sep 2024 10:39:25 +0000 Subject: [PATCH] =?UTF-8?q?feat(net-tool):=20=E5=81=A5=E5=BA=B7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=94=AF=E6=8C=81=E4=BC=A0=E5=85=A5message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 4 +++- packages/net-tool/src/index.ts | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fb79900..d2639bf 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,7 +20,9 @@ "YoavBls.pretty-ts-errors", "ChakrounAnas.turbo-console-log", "streetsidesoftware.code-spell-checker", - "MS-CEINTL.vscode-language-pack-zh-hans" + "MS-CEINTL.vscode-language-pack-zh-hans", + "GitHub.copilot-chat", + "GitHub.copilot" ] } }, diff --git a/packages/net-tool/src/index.ts b/packages/net-tool/src/index.ts index 425972e..a0dbf3b 100644 --- a/packages/net-tool/src/index.ts +++ b/packages/net-tool/src/index.ts @@ -480,10 +480,11 @@ class NetTool extends NetToolBase { /** * 创建一个表示200 OK的健康检查响应对象。 * + * @param message - 响应消息。 * @returns 一个表示200 OK的健康检查响应对象。 */ - healthCheck() { - return Response.json({ code: 0, message: "success" }) + healthCheck(message = "success") { + return Response.json({ code: 0, message }) } }