diff --git a/cmd/migrate/migration/models/sys_config.go b/cmd/migrate/migration/models/sys_config.go index f8b53f2..bd79da3 100644 --- a/cmd/migrate/migration/models/sys_config.go +++ b/cmd/migrate/migration/models/sys_config.go @@ -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 } diff --git a/cmd/migrate/migration/models/sys_content.go b/cmd/migrate/migration/models/sys_content.go index 04c9ef1..2c3c20d 100644 --- a/cmd/migrate/migration/models/sys_content.go +++ b/cmd/migrate/migration/models/sys_content.go @@ -13,7 +13,6 @@ type SysContent struct { ModelTime } -// TableName func (SysContent) TableName() string { return "sys_content" } diff --git a/cmd/migrate/migration/models/sys_user.go b/cmd/migrate/migration/models/sys_user.go index b817687..ab22a6c 100644 --- a/cmd/migrate/migration/models/sys_user.go +++ b/cmd/migrate/migration/models/sys_user.go @@ -28,7 +28,7 @@ func (SysUser) TableName() string { return "sys_user" } -//加密 +// Encrypt 加密 func (e *SysUser) Encrypt() (err error) { if e.Password == "" { return diff --git a/cmd/migrate/migration/version/1599190683659_tables.go b/cmd/migrate/migration/version/1599190683659_tables.go index a19c830..8afaa8b 100644 --- a/cmd/migrate/migration/version/1599190683659_tables.go +++ b/cmd/migrate/migration/version/1599190683659_tables.go @@ -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),