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

20 lines
692 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"`
Name string `json:"name"`
Value any `json:"value"`
Type string `json:"type"` // "int", "bool", "string"
DefaultValue any `json:"default_value"`
Description string `json:"description"`
Category string `json:"category"`
MinValue *int `json:"min_value,omitempty"`
}
// CategorizedSettings a list of settings grouped by category
type CategorizedSettings struct {
CategoryName string `json:"category_name"`
Settings []SystemSettingInfo `json:"settings"`
}