forked from lxh/go-wxhelper
20 lines
480 B
Go
20 lines
480 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")) // 菜单相关
|
|
robot(g.Group("/robot")) // 机器人相关
|
|
aiAssistant(g.Group("/ai-assistant")) // AI助手相关
|
|
role(g.Group("/role")) // 角色相关
|
|
}
|