增加获取路由树功能

This commit is contained in:
pixelqm
2019-09-08 11:13:43 +08:00
parent 5fee629f66
commit 1b1ceefa27
19 changed files with 636 additions and 150 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ import (
//注册数据库表专用
func RegistTable(db *gorm.DB) {
db.AutoMigrate(dbModel.User{})
db.AutoMigrate(dbModel.User{}, dbModel.Authority{}, dbModel.Menu{})
}