go-wxhelper/router/admin/menu.go

15 lines
304 B
Go
Raw Permalink Normal View History

2024-01-19 12:06:30 +08:00
package admin
import (
"github.com/gin-gonic/gin"
menuApi "wechat-robot/api/admin/menu"
)
// menu
// @description: 菜单相关
// @param g
func menu(g *gin.RouterGroup) {
2024-02-02 11:44:11 +08:00
g.GET("/self", menuApi.GetUserMenuTree) // 获取当前用户菜单
g.POST("", menuApi.Save) // 保存菜单
2024-01-19 12:06:30 +08:00
}