feat: 升级 samber/do v1 → v2

This commit is contained in:
2026-05-15 09:04:12 +08:00
parent 7741f7584d
commit 9ad5d25836
47 changed files with 1456 additions and 684 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ import (
"net/http"
"github.com/lestrrat-go/jwx/jwt"
"github.com/samber/do"
"github.com/samber/do/v2"
)
type JWTAuth interface {
HttpMiddleware(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)
}