27 lines
837 B
Go
27 lines
837 B
Go
// Package dto 请求参数
|
|
package dto
|
|
|
|
// AppConfigResponse 配置中心响应
|
|
type AppConfigResponse struct {
|
|
App AppClientConfig `json:"app"`
|
|
API AppEndpointConfig `json:"api"`
|
|
WebView AppEndpointConfig `json:"webview"`
|
|
TTLSeconds int `json:"ttlSeconds"`
|
|
Disabled bool `json:"disabled"`
|
|
DisableReason string `json:"disableReason"`
|
|
}
|
|
|
|
// AppClientConfig 客户端版本配置
|
|
type AppClientConfig struct {
|
|
MinVersion string `json:"minVersion"`
|
|
LatestVersion string `json:"latestVersion"`
|
|
ForceUpdate bool `json:"forceUpdate"`
|
|
}
|
|
|
|
// AppEndpointConfig 接口或 WebView 配置
|
|
type AppEndpointConfig struct {
|
|
BaseURL string `json:"baseUrl"`
|
|
Version string `json:"version"`
|
|
MinClientVersion string `json:"minClientVersion"`
|
|
}
|