go-wxhelper/router/admin/menu.go
2024-02-02 11:44:11 +08:00

15 lines
304 B
Go

package admin
import (
"github.com/gin-gonic/gin"
menuApi "wechat-robot/api/admin/menu"
)
// menu
// @description: 菜单相关
// @param g
func menu(g *gin.RouterGroup) {
g.GET("/self", menuApi.GetUserMenuTree) // 获取当前用户菜单
g.POST("", menuApi.Save) // 保存菜单
}