This commit is contained in:
2025-12-12 14:43:24 +08:00
parent 13829de3e6
commit fd127bd285
4 changed files with 49 additions and 25 deletions

View File

@@ -11,7 +11,7 @@ info (
group: app
)
service main {
@doc(
@doc (
summary: "心跳检测接口"
)
@handler healthCheck
@@ -19,12 +19,15 @@ service main {
@handler getAppVersion
get /app/version returns (getAppVersionResp)
@handler getAppConfig
get /app/config returns (getAppConfigResp)
}
type (
// 心跳检测响应
HealthCheckResp {
Status string `json:"status"` // 服务状态
Status string `json:"status"` // 服务状态
Message string `json:"message"` // 状态信息
}
)
@@ -34,4 +37,11 @@ type (
Version string `json:"version"`
WgtUrl string `json:"wgtUrl"`
}
)
)
type (
getAppConfigResp {
QueryRetentionDays int64 `json:"query_retention_days"`
}
)