[feat] 统一 Http 中间件命名
This commit is contained in:
parent
0d0a5ce476
commit
3f3d051c42
@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
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)
|
||||
Decode(token string) (jwt.Token, error)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user