menu
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user