Files
bl/modules/base/model/base_sys_conf.go

30 lines
700 B
Go
Raw Normal View History

2025-06-20 17:13:51 +08:00
package model
import "github.com/cool-team-official/cool-admin-go/cool"
const TableNameBaseSysConf = "base_sys_conf"
// BaseSysConf mapped from table <base_sys_conf>
type BaseSysConf struct {
*cool.Model
CKey string `gorm:"column:cKey;type:varchar(255);not null;index" json:"cKey"` // 配置键
CValue string `gorm:"column:cValue;type:varchar(255);not null" json:"cValue"` // 配置值
}
// TableName BaseSysConf's table name
func (*BaseSysConf) TableName() string {
return TableNameBaseSysConf
}
// init 创建表
func init() {
cool.CreateTable(&BaseSysConf{})
}
// NewBaseSysConf 创建实例
func NewBaseSysConf() *BaseSysConf {
return &BaseSysConf{
Model: cool.NewModel(),
}
}