f
This commit is contained in:
@@ -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"` // 查询相关配置
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user