feat: add auto migrate and init account

This commit is contained in:
engigu
2024-01-07 21:30:59 +08:00
parent 312c591063
commit 63f6e93894
9 changed files with 116 additions and 36 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ import (
type Settings struct {
IDModel
Section string `json:"section"`
Key string `json:"key"`
Value string `json:"value"`
Section string `json:"section" gorm:"type:varchar(100) comment '实例类型';default:'';index:section"`
Key string `json:"key" gorm:"type:varchar(100) comment '实例类型';default:'';"`
Value string `json:"value" gorm:"type:varchar(4096) comment '实例类型';default:'';"`
}
// AddOneSetting 添加一条设置