|
|
|
@ -19,7 +19,7 @@ import (
|
|
|
|
type Setting struct {
|
|
|
|
type Setting struct {
|
|
|
|
vigo.Model
|
|
|
|
vigo.Model
|
|
|
|
Key string `gorm:"uniqueIndex;size:100;not null" json:"key"`
|
|
|
|
Key string `gorm:"uniqueIndex;size:100;not null" json:"key"`
|
|
|
|
Value string `gorm:"type:longtext" json:"value"`
|
|
|
|
Value string `gorm:"" json:"value"`
|
|
|
|
Type string `gorm:"size:20;default:'string'" json:"type"` // string/int/bool/json
|
|
|
|
Type string `gorm:"size:20;default:'string'" json:"type"` // string/int/bool/json
|
|
|
|
Category string `gorm:"index;size:50" json:"category"`
|
|
|
|
Category string `gorm:"index;size:50" json:"category"`
|
|
|
|
Desc string `gorm:"size:200" json:"desc"`
|
|
|
|
Desc string `gorm:"size:200" json:"desc"`
|
|
|
|
|