mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
refactor🎨: 添加行政区模型
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user