22 lines
468 B
Go
22 lines
468 B
Go
package system
|
||
|
||
import (
|
||
"encoding/json"
|
||
"ferry/models/base"
|
||
)
|
||
|
||
/*
|
||
@Author : lanyulei
|
||
*/
|
||
|
||
// 配置信息
|
||
type Settings struct {
|
||
base.Model
|
||
Classify int `gorm:"column:classify; type:int(11)" json:"classify" form:"classify"` // 设置分类,1 配置信息,2 Ldap配置
|
||
Content json.RawMessage `gorm:"column:content; type:json" json:"content" form:"content"` // 配置内容
|
||
}
|
||
|
||
func (Settings) TableName() string {
|
||
return "sys_settings"
|
||
}
|