mirror of
https://github.com/weloe/token-go.git
synced 2025-10-07 08:20:56 +08:00
refactor: extract methods, adjust position and name
This commit is contained in:
@@ -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{})
|
||||
|
Reference in New Issue
Block a user