package models type Menu struct { Id int64 `xorm:"id"` Name string `xorm:"name"` MenuType string `xorm:"menutype"` Path string `xorm:"path"` Icon string `xorm:"icon"` Redirect string `xorm:"redirect"` Title string `xorm:"title"` ParentId int64 `xorm:"parentid"` Component string `xorm:"component"` Sort int32 `xorm:"sort"` Enable int32 `xorm:"enable"` CreatedOn int64 `xorm:"created_on"` ModifiedOn int64 `xorm:"modified_on"` DeletedOn int64 `xorm:"deleted_on"` Isg int32 `xorm:"isg"` } func (m *Menu) TableName() string { return "menu" }