go-wxhelper/router/admin/route.go
2024-01-19 12:06:30 +08:00

17 lines
295 B
Go

package admin
import (
"github.com/gin-gonic/gin"
"wechat-robot/router/middleware"
)
// InitRoute
// @description: 初始化路由
// @param g
func InitRoute(g *gin.RouterGroup) {
login(g) // 登录相关路由
g.Use(middleware.AuthorizeToken())
menu(g.Group("/menu")) // 菜单相关
}