ferry/models/system/settings.go
2020-08-19 01:09:01 +08:00

22 lines
468 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"
}