mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 10:13:01 +00:00
refactor🎨:修改行政区数据sql
This commit is contained in:
@@ -2,12 +2,12 @@ package models
|
||||
|
||||
type SysConfig struct {
|
||||
Model
|
||||
ConfigName string `json:"configName" gorm:"type:varchar(128);comment:ConfigName"` //
|
||||
ConfigKey string `json:"configKey" gorm:"type:varchar(128);comment:ConfigKey"` //
|
||||
ConfigValue string `json:"configValue" gorm:"type:varchar(255);comment:ConfigValue"` //
|
||||
ConfigName string `json:"configName" gorm:"type:varchar(128);comment:ConfigName"`
|
||||
ConfigKey string `json:"configKey" gorm:"type:varchar(128);comment:ConfigKey"`
|
||||
ConfigValue string `json:"configValue" gorm:"type:varchar(255);comment:ConfigValue"`
|
||||
ConfigType string `json:"configType" gorm:"type:varchar(64);comment:ConfigType"`
|
||||
IsFrontend int `json:"isFrontend" gorm:"type:varchar(64);comment:是否前台"` //
|
||||
Remark string `json:"remark" gorm:"type:varchar(128);comment:Remark"` //
|
||||
IsFrontend int `json:"isFrontend" gorm:"type:varchar(64);comment:是否前台"`
|
||||
Remark string `json:"remark" gorm:"type:varchar(128);comment:Remark"`
|
||||
ControlBy
|
||||
ModelTime
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ type SysContent struct {
|
||||
ModelTime
|
||||
}
|
||||
|
||||
// TableName
|
||||
func (SysContent) TableName() string {
|
||||
return "sys_content"
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ func (SysUser) TableName() string {
|
||||
return "sys_user"
|
||||
}
|
||||
|
||||
//加密
|
||||
// Encrypt 加密
|
||||
func (e *SysUser) Encrypt() (err error) {
|
||||
if e.Password == "" {
|
||||
return
|
||||
|
||||
@@ -32,10 +32,9 @@ func _1599190683659Tables(db *gorm.DB, version string) error {
|
||||
new(models.SysPost),
|
||||
new(models.DictData),
|
||||
new(models.DictType),
|
||||
new(models.SysChinaAreaData),
|
||||
new(models.SysAreaData),
|
||||
new(models.SysJob),
|
||||
new(models.SysConfig),
|
||||
new(models.SysSetting),
|
||||
new(models.SysFileDir),
|
||||
new(models.SysFileInfo),
|
||||
new(models.SysCategory),
|
||||
|
||||
Reference in New Issue
Block a user