nezha/cmd/dashboard/controller/member_page.go
2019-12-08 16:59:58 +08:00

22 lines
375 B
Go

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",
}))
}