You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
585 B

  1. package router
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "main/controller/api"
  5. "main/middleware"
  6. )
  7. func InitMenuRouter(Router *gin.Engine) {
  8. MenuRouter := Router.Group("menu").Use(middleware.JWTAuth())
  9. {
  10. MenuRouter.POST("getMenu", api.GetMenu)
  11. MenuRouter.POST("getMenuList", api.GetMenuList)
  12. MenuRouter.POST("addBaseMenu", api.AddBaseMenu)
  13. MenuRouter.POST("getBaseMenuTree", api.GetBaseMenuTree)
  14. MenuRouter.POST("addMenuAuthority", api.AddMenuAuthority)
  15. MenuRouter.POST("getMenuAuthority", api.GetMenuAuthority)
  16. MenuRouter.POST("deleteBaseMenu",api.DeleteBaseMenu)
  17. }
  18. }