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