You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
966 B
25 lines
966 B
package model
|
|
|
|
import "pure-admin/global"
|
|
|
|
type SysConfig struct {
|
|
ID int `gorm:"AUTO_INCREMENT;primary_key" json:"-"` //主键
|
|
Label string `gorm:"unique;size:30" sql:"index" json:"-"` //唯一标记
|
|
Value1 string `gorm:"size:100" sql:"index" json:"value1"` //取值1
|
|
ValueType string `gorm:"type:enum('string','number','bool');default:'string'" json:"-"` //值的类型
|
|
Desc string `gorm:"size:100" json:"desc"` //描述信息
|
|
Show bool `gorm:"type:tinyint(1);default:0" json:"-"` //是否提供给APP
|
|
global.TIME_MODEL
|
|
}
|
|
|
|
type SysConfigView struct {
|
|
ID int `json:"id"`
|
|
Label string `json:"label"`
|
|
Value1 string `json:"value1"`
|
|
ValueType string `json:"valueType"`
|
|
Show bool `json:"show"`
|
|
}
|
|
|
|
func (SysConfig) TableName() string {
|
|
return "sys_config"
|
|
}
|
|
|