Files
gpt-load/internal/models/setting_info.go
2025-07-03 00:33:57 +08:00

16 lines
671 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
// SystemSettingInfo 表示系统配置的详细信息用于API返回
type SystemSettingInfo struct {
Key string `json:"key"`
Value interface{} `json:"value"`
Type string `json:"type"` // "int", "bool", "string"
DefaultValue interface{} `json:"default_value"`
Description string `json:"description"`
Category string `json:"category"` // "timeout", "performance", "logging", etc.
Required bool `json:"required"`
MinValue *int `json:"min_value,omitempty"`
MaxValue *int `json:"max_value,omitempty"`
ValidOptions []string `json:"valid_options,omitempty"`
}