fix issues
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
_ "atom/providers/jwt"
|
||||
_ "atom/providers/log"
|
||||
_ "atom/providers/query"
|
||||
_ "atom/providers/rbac"
|
||||
_ "atom/providers/single_flight"
|
||||
_ "atom/providers/uuid"
|
||||
)
|
||||
|
||||
@@ -31,13 +31,8 @@ type CasbinInfo struct {
|
||||
Method string `json:"method"` // 方法
|
||||
}
|
||||
|
||||
func NewCasbin(
|
||||
query *query.Query,
|
||||
db *gorm.DB,
|
||||
) (IRbac, error) {
|
||||
cb := &Casbin{
|
||||
query: query,
|
||||
}
|
||||
func NewCasbin(query *query.Query, db *gorm.DB) (IRbac, error) {
|
||||
cb := &Casbin{query: query}
|
||||
|
||||
a, _ := gormadapter.NewAdapterByDB(db)
|
||||
text := `
|
||||
|
||||
Reference in New Issue
Block a user