✨ add casbin rbac
This commit is contained in:
@@ -2,6 +2,7 @@ package global
|
||||
|
||||
import (
|
||||
"github.com/ArtisanCloud/PowerWeChat/v3/src/officialAccount"
|
||||
"github.com/casbin/casbin/v2"
|
||||
"github.com/redis/go-redis/v9"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/wenlng/go-captcha/v2/click"
|
||||
@@ -24,4 +25,5 @@ var (
|
||||
SlideRegionCaptcha slide.Captcha // 滑块区域验证码
|
||||
REDIS *redis.Client // redis连接
|
||||
Wechat *officialAccount.OfficialAccount // 微信公众号
|
||||
Casbin *casbin.CachedEnforcer // casbin权限管理器
|
||||
)
|
||||
|
Reference in New Issue
Block a user