refactor🎨:修改行政区数据sql
This commit is contained in:
1 parent
a911e73238
commit
493d714723
4 files changed
+7
-9
No files matched your search
@@ -2,12 +2,12 @@ package models
|
|||||||
|
|
||||||
type SysConfig struct {
|
type SysConfig struct {
|
||||||
Model
|
Model
|
||||||
ConfigName string `json:"configName" gorm:"type:varchar(128);comment:ConfigName"` //
|
ConfigName string `json:"configName" gorm:"type:varchar(128);comment:ConfigName"`
|
||||||
ConfigKey string `json:"configKey" gorm:"type:varchar(128);comment:ConfigKey"` //
|
ConfigKey string `json:"configKey" gorm:"type:varchar(128);comment:ConfigKey"`
|
||||||
ConfigValue string `json:"configValue" gorm:"type:varchar(255);comment:ConfigValue"` //
|
ConfigValue string `json:"configValue" gorm:"type:varchar(255);comment:ConfigValue"`
|
||||||
ConfigType string `json:"configType" gorm:"type:varchar(64);comment:ConfigType"`
|
ConfigType string `json:"configType" gorm:"type:varchar(64);comment:ConfigType"`
|
||||||
IsFrontend int `json:"isFrontend" gorm:"type:varchar(64);comment:是否前台"` //
|
IsFrontend int `json:"isFrontend" gorm:"type:varchar(64);comment:是否前台"`
|
||||||
Remark string `json:"remark" gorm:"type:varchar(128);comment:Remark"` //
|
Remark string `json:"remark" gorm:"type:varchar(128);comment:Remark"`
|
||||||
ControlBy
|
ControlBy
|
||||||
ModelTime
|
ModelTime
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ type SysContent struct {
|
|||||||
ModelTime
|
ModelTime
|
||||||
}
|
}
|
||||||
|
|
||||||
// TableName
|
|
||||||
func (SysContent) TableName() string {
|
func (SysContent) TableName() string {
|
||||||
return "sys_content"
|
return "sys_content"
|
||||||
}
|
}
|
||||||
@@ -28,7 +28,7 @@ func (SysUser) TableName() string {
|
|||||||
return "sys_user"
|
return "sys_user"
|
||||||
}
|
}
|
||||||
|
|
||||||
//加密
|
// Encrypt 加密
|
||||||
func (e *SysUser) Encrypt() (err error) {
|
func (e *SysUser) Encrypt() (err error) {
|
||||||
if e.Password == "" {
|
if e.Password == "" {
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -32,10 +32,9 @@ func _1599190683659Tables(db *gorm.DB, version string) error {
|
|||||||
new(models.SysPost),
|
new(models.SysPost),
|
||||||
new(models.DictData),
|
new(models.DictData),
|
||||||
new(models.DictType),
|
new(models.DictType),
|
||||||
new(models.SysChinaAreaData),
|
new(models.SysAreaData),
|
||||||
new(models.SysJob),
|
new(models.SysJob),
|
||||||
new(models.SysConfig),
|
new(models.SysConfig),
|
||||||
new(models.SysSetting),
|
|
||||||
new(models.SysFileDir),
|
new(models.SysFileDir),
|
||||||
new(models.SysFileInfo),
|
new(models.SysFileInfo),
|
||||||
new(models.SysCategory),
|
new(models.SysCategory),
|
||||||
|
|||||||
Reference in new issue
Block a user