兼容casbin2.24.0版本log
迁移脚本编译时不打包
This commit is contained in:
1 parent
48f0cb46ec
commit
39dd1ee6f8
56 files changed
+320
-454
No files matched your search
+3
-3
@@ -19,10 +19,10 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
syncEnforce := myCasbin.Setup(db, "sys_")
|
||||
global.Cfg.SetDb("*", db)
|
||||
global.Cfg.SetCasbin("*", syncEnforce)
|
||||
global.Runtime.SetDb("*", db)
|
||||
global.Runtime.SetCasbin("*", syncEnforce)
|
||||
|
||||
e := gin.Default()
|
||||
global.Cfg.SetEngine(e)
|
||||
global.Runtime.SetEngine(e)
|
||||
log.Fatal(e.Run(":8000"))
|
||||
}
|
||||
Reference in new issue
Block a user