This commit is contained in:
2026-04-22 17:49:20 +08:00
parent a2fad4a095
commit f545aee45e
15 changed files with 268 additions and 140 deletions

View File

@@ -19,6 +19,12 @@ service main {
@handler getAppVersion
get /app/version returns (getAppVersionResp)
@doc(
summary: "获取APP全局配置"
)
@handler getAppConfig
get /app/config returns (GetAppConfigResp)
}
type (
@@ -34,4 +40,14 @@ type (
Version string `json:"version"`
WgtUrl string `json:"wgtUrl"`
}
)
)
type (
AppQueryConfig {
RetentionDays int64 `json:"retention_days"` // 查询结果保留天数
}
GetAppConfigResp {
Query AppQueryConfig `json:"query"` // 查询相关配置
}
)