生成swag
This commit is contained in:
@@ -4052,6 +4052,46 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/healthz": {
|
||||
"get": {
|
||||
"description": "检查服务进程是否运行正常,只要服务能响应就返回 200 OK。",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"健康检查"
|
||||
],
|
||||
"summary": "服务存活检查",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "服务存活",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/readyz": {
|
||||
"get": {
|
||||
"description": "检查服务是否已准备好接收流量。当前实现为只要服务能响应即代表就绪。",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"健康检查"
|
||||
],
|
||||
"summary": "服务就绪检查",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "服务已就绪",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/controller.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
|
||||
Reference in New Issue
Block a user