[feat] 统一 Http 中间件命名

This commit is contained in:
what 2024-01-29 17:25:48 +08:00
parent 0d0a5ce476
commit 3f3d051c42

View File

@ -8,7 +8,7 @@ import (
) )
type JWTAuth interface { type JWTAuth interface {
Authenticator(container *do.Injector) func(next http.Handler) http.Handler HttpMiddleware(container *do.Injector) func(next http.Handler) http.Handler
Encode(claims map[string]interface{}) (token string, err error) Encode(claims map[string]interface{}) (token string, err error)
Decode(token string) (jwt.Token, error) Decode(token string) (jwt.Token, error)
} }