中间件使用 鉴权处理 import ( "github.com/gogf/gf/net/ghttp")// 鉴权中间件,只有登录成功之后才能通过 r.Middleware.Next() } else { r.Response.WriteStatus(http.StatusForbidden) }