refactor: extract methods, adjust position and name

This commit is contained in:
weloe
2023-10-14 02:54:11 +08:00
parent 283f14692d
commit 1395874370
7 changed files with 322 additions and 242 deletions

View File

@@ -68,7 +68,7 @@ type IEnforcer interface {
DeleteTempToken(service string, tempToken string) error
GetRequestToken(ctx ctx.Context) string
AddTokenGenerateFun(tokenStyle string, f model.GenerateFunc) error
AddTokenGenerateFun(tokenStyle string, f model.HandlerFunc) error
// Access control api
SetAuth(manager interface{})