123456789101112131415161718192021222324252627 |
- package system
- import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
- "github.com/gin-gonic/gin"
- )
- type MenuRouter struct {
- }
- func (s *MenuRouter) InitMenuRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
- menuRouter := Router.Group("menu").Use(middleware.OperationRecord())
- var authorityMenuApi = v1.ApiGroupApp.SystemApiGroup.AuthorityMenuApi
- {
- menuRouter.POST("getMenu", authorityMenuApi.GetMenu)
- menuRouter.POST("getMenuList", authorityMenuApi.GetMenuList)
- menuRouter.POST("addBaseMenu", authorityMenuApi.AddBaseMenu)
- menuRouter.POST("getBaseMenuTree", authorityMenuApi.GetBaseMenuTree)
- menuRouter.POST("addMenuAuthority", authorityMenuApi.AddMenuAuthority)
- menuRouter.POST("getMenuAuthority", authorityMenuApi.GetMenuAuthority)
- menuRouter.POST("deleteBaseMenu", authorityMenuApi.DeleteBaseMenu)
- menuRouter.POST("updateBaseMenu", authorityMenuApi.UpdateBaseMenu)
- menuRouter.POST("getBaseMenuById", authorityMenuApi.GetBaseMenuById)
- }
- return menuRouter
- }
|