2024-01-19 12:06:30 +08:00
|
|
|
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())
|
2024-02-02 17:30:11 +08:00
|
|
|
menu(g.Group("/menu")) // 菜单相关
|
2024-02-05 15:21:36 +08:00
|
|
|
robot(g.Group("/robot")) // 机器人相关
|
2024-02-02 17:30:11 +08:00
|
|
|
aiAssistant(g.Group("/ai-assistant")) // AI助手相关
|
2024-02-05 17:28:46 +08:00
|
|
|
role(g.Group("/role")) // 角色相关
|
2024-01-19 12:06:30 +08:00
|
|
|
}
|