mirror of
https://github.com/weloe/token-go.git
synced 2025-09-29 12:52:20 +08:00
feat: add simple auth api
This commit is contained in:
@@ -26,6 +26,10 @@ type IEnforcer interface {
|
||||
|
||||
CheckLogin(ctx ctx.Context) error
|
||||
|
||||
SetAuth(manager interface{})
|
||||
CheckRole(ctx ctx.Context, role string) error
|
||||
CheckPermission(ctx ctx.Context, permission string) error
|
||||
|
||||
SetType(t string)
|
||||
GetType() string
|
||||
GetAdapter() persist.Adapter
|
||||
|
Reference in New Issue
Block a user