Compare commits

...

2 Commits

Author SHA1 Message Date
b7814eb8f2 chore(release): publish
- @egg/net-tool@1.6.0
2024-09-20 10:39:54 +00:00
c0df99bfd8 feat(net-tool): 健康检查支持传入message
All checks were successful
/ release (push) Successful in 29s
2024-09-20 10:39:25 +00:00
5 changed files with 14 additions and 5 deletions

View File

@ -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"
]
}
},

2
package-lock.json generated
View File

@ -12272,7 +12272,7 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.5.1",
"version": "1.6.0",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.3.0",

View File

@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [1.6.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.5.1...@egg/net-tool@1.6.0) (2024-09-20)
### Features
- **net-tool:** 健康检查支持传入message ([c0df99b](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/c0df99bfd81651307322367f4b8348143b709a1f))
## [1.5.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.5.0...@egg/net-tool@1.5.1) (2024-08-23)
### Bug Fixes

View File

@ -1,6 +1,6 @@
{
"name": "@egg/net-tool",
"version": "1.5.1",
"version": "1.6.0",
"description": "Net Tools for Egg projects",
"type": "module",
"main": "src/index.ts",

View File

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