backgroud_menus_router.go 996 字节
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/backgroud_client"
)

func init() {
	web.Router("/v1/background/menus/", &backgroud_client.MenuController{}, "Post:CreateMenu")
	web.Router("/v1/background/menus/:menuId", &backgroud_client.MenuController{}, "Put:UpdateMenu")
	web.Router("/v1/background/menus/:menuId", &backgroud_client.MenuController{}, "Get:GetMenu")
	//web.Router("/v1/background/menus/:menuId", &backgroud_client.MenuController{}, "Delete:RemoveMenu")
	//web.Router("/v1/background/menus/search", &backgroud_client.MenuController{}, "Get:ListMenu")
	web.Router("/v1/background/menus/search", &backgroud_client.MenuController{}, "Post:SearchMenu")
	web.Router("/v1/background/menus/batch-delete", &backgroud_client.MenuController{}, "Post:BatchDeleteMenu")
	web.Router("/v1/background/menus/batch-enable", &backgroud_client.MenuController{}, "Post:BatchEnableMenu")
}