refactor🎨: 添加行政区模型

This commit is contained in:
wenjianzhang
2021-06-11 15:26:35 +08:00
parent 54e116818b
commit 1391366ece
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,13 @@
package models
type SysChinaAreaData struct {
Model
PId string `json:"p_id" gorm:"size:11;comment:上级编码"`
Name string `json:"name" gorm:"size:128;comment:名称"`
ControlBy
ModelTime
}
func (SysChinaAreaData) TableName() string {
return "sys_china_area_data"
}
@@ -31,6 +31,7 @@ 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.SysJob), new(models.SysJob),
new(models.SysConfig), new(models.SysConfig),
new(models.SysSetting), new(models.SysSetting),