This commit is contained in:
suyl
2021-07-08 09:44:16 +08:00
parent 2131a724a6
commit 9ad4d52352
2 changed files with 2 additions and 0 deletions

View File

@@ -230,6 +230,7 @@ type Menu struct {
Level int `json:"level"` //级别
ParentID int `orm:"column(parent_id)" json:"parentID"` //父功能ID
Color string `json:"color"` //颜色
Content string `orm:"type(text)" json:"content"` //菜单内容
}
func (*Menu) TableUnique() [][]string {

View File

@@ -16,6 +16,7 @@ func Init() {
orm.RegisterModel(&model.NewConfig{})
orm.RegisterModel(&model.User{})
orm.RegisterModel(&model.Place{})
orm.RegisterModel(&model.Menu{})
// create table
orm.RunSyncdb("default", false, true)
}