mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-03-24 12:01:51 +00:00
Web 服务
This commit is contained in:
21
cmd/dashboard/controller/member_page.go
Normal file
21
cmd/dashboard/controller/member_page.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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",
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user