gorm升级到v2版本
This commit is contained in:
1 parent
93cfe443d6
commit
60c7496f7b
56 files changed
+630
-477
No files matched your search
@@ -3,10 +3,10 @@ package mycasbin
|
||||
import (
|
||||
"github.com/casbin/casbin/v2"
|
||||
"github.com/casbin/casbin/v2/model"
|
||||
gormAdapter "github.com/casbin/gorm-adapter/v2"
|
||||
gormAdapter "github.com/casbin/gorm-adapter/v3"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"log"
|
||||
"go-admin/global"
|
||||
"log"
|
||||
)
|
||||
|
||||
// Initialize the model from a string.
|
||||
|
||||
Reference in new issue
Block a user