refactor🎨:修改行政区数据sql

This commit is contained in:
zhangwenjian
2021-06-17 21:46:19 +08:00
parent a911e73238
commit 493d714723
4 changed files with 7 additions and 9 deletions
+5 -5
View File
@@ -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"
}
+1 -1
View File
@@ -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),