package controller import ( "github.com/gin-gonic/gin" "github.com/p14yground/nezha/pkg/mygin" ) type memberPage struct { r *gin.Engine } func (mp *memberPage) serve() { mr := mp.r.Group("") mr.Use(mygin.Authorize(mygin.AuthorizeOption{ Member: true, IsPage: true, Msg: "此页面需要登录", Btn: "点此登录", Redirect: "/login", })) }