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 }) } }