Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { DB *gorm.DB KVTable string // 配置表名称 Lock sync.Mutex // 缓存锁 Cache map[uint]string // 缓存配置项 }
数据库相关配置
type KeyValue ¶
type KeyValue struct { Id uint `gorm:"column:id;primaryKey;type:BIGINT UNSIGNED;not null;autoIncrement" json:"id" form:"id"` Fid uint `` //上级分类编号(数据分析时使用) /* 139-byte string literal not displayed */ Value string `gorm:"column:value;type:varchar(200);unique;comment:对应的值" json:"value" form:"value"` //对应的值 CreatedAt string `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at" form:"created_at"` }
Click to show internal directories.
Click to hide internal directories.