Compare commits

...

2 Commits

Author SHA1 Message Date
a4bb72a717 chore(release): publish
- @egg/net-tool@1.8.0
2024-09-27 03:09:42 +00:00
9d1f92863e feat(net-tool): 新增空200返回
All checks were successful
/ release (push) Successful in 25s
2024-09-27 03:09:19 +00:00
4 changed files with 18 additions and 2 deletions

2
package-lock.json generated
View File

@ -12272,7 +12272,7 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.7.1",
"version": "1.8.0",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.4.3",

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.8.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.7.1...@egg/net-tool@1.8.0) (2024-09-27)
### Features
- **net-tool:** 新增空200返回 ([9d1f928](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/9d1f92863ee9515999292122338d7541e71bc06b))
## [1.7.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.7.0...@egg/net-tool@1.7.1) (2024-09-27)
**Note:** Version bump only for package @egg/net-tool

View File

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

View File

@ -490,6 +490,16 @@ class NetTool extends NetToolBase {
return Response.json(data)
}
/**
* 200 OK的响应对象
*
* @returns 200 OK的响应对象
*/
empty200() {
this.logger.info("return a empty 200 response")
return new Response(null, { status: 200 })
}
/**
* 200 OK的健康检查响应对象
*