feat(net-tool): 健康检查支持传入message

This commit is contained in:
zhaoyingbo 2024-09-20 10:39:25 +00:00
parent ed63a201ea
commit c0df99bfd8
2 changed files with 6 additions and 3 deletions
.devcontainer
packages/net-tool/src

@ -20,7 +20,9 @@
"YoavBls.pretty-ts-errors", "YoavBls.pretty-ts-errors",
"ChakrounAnas.turbo-console-log", "ChakrounAnas.turbo-console-log",
"streetsidesoftware.code-spell-checker", "streetsidesoftware.code-spell-checker",
"MS-CEINTL.vscode-language-pack-zh-hans" "MS-CEINTL.vscode-language-pack-zh-hans",
"GitHub.copilot-chat",
"GitHub.copilot"
] ]
} }
}, },

@ -480,10 +480,11 @@ class NetTool extends NetToolBase {
/** /**
* 200 OK的健康检查响应对象 * 200 OK的健康检查响应对象
* *
* @param message -
* @returns 200 OK的健康检查响应对象 * @returns 200 OK的健康检查响应对象
*/ */
healthCheck() { healthCheck(message = "success") {
return Response.json({ code: 0, message: "success" }) return Response.json({ code: 0, message })
} }
} }