change settings

This commit is contained in:
微凉
2021-11-12 19:39:01 +08:00
parent 98c017730f
commit 2c675ae909
3 changed files with 34 additions and 7 deletions

View File

@ -14,8 +14,9 @@ type SettingItem struct {
Key string `json:"key" gorm:"primaryKey" validate:"required"`
Value string `json:"value"`
Description string `json:"description"`
//Type string `json:"type"`
Type string `json:"type"`
Group int `json:"group"`
Values string `json:"values"`
}
func SaveSettings(items []SettingItem) error {