This commit is contained in:
2025-12-18 09:54:29 +08:00
parent 1eef314e98
commit 650ada9cc6
25 changed files with 3929 additions and 43 deletions

View File

@@ -5,9 +5,13 @@ import (
"quyun/v2/providers/jwt"
)
// Middlewares provides reusable Fiber middlewares shared across modules.
//
// @provider
type Middlewares struct {
// log is the module logger injected by the framework.
log *log.Entry `inject:"false"`
// jwt is the JWT provider used by auth-related middlewares.
jwt *jwt.JWT
}