feat: add settings schema

This commit is contained in:
QiuSW
2026-07-09 00:12:30 +08:00
parent 5aaac0b166
commit 91debb9ad6
24 changed files with 867 additions and 53 deletions
+25
View File
@@ -0,0 +1,25 @@
package models
type AppSettingOption struct {
Value string `json:"value"`
Label string `json:"label"`
}
type AppSettingDefinition struct {
Key string `json:"key"`
Category string `json:"category"`
Label string `json:"label"`
Type string `json:"type"`
DefaultValue string `json:"defaultValue"`
Value string `json:"value"`
Description string `json:"description"`
Options []AppSettingOption `json:"options"`
ReadOnly bool `json:"readOnly"`
}
type AppSettingGroup struct {
Category string `json:"category"`
Label string `json:"label"`
Description string `json:"description"`
Items []AppSettingDefinition `json:"items"`
}