loginstatuscheck_middleware.go
475 字节
package middleware
import "net/http"
type LoginStatusCheckMiddleware struct {
}
func NewLoginStatusCheckMiddleware() *LoginStatusCheckMiddleware {
return &LoginStatusCheckMiddleware{}
}
func (m *LoginStatusCheckMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
// TODO generate middleware implement function, delete after code implementation
// Passthrough to next handler if need
next(w, r)
}
}