menu_router.go 525 字节
package routers

import (
	"github.com/astaxie/beego"
	"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/port/beego/controllers"
)

func init() {
	beego.Router("/menu/", &controllers.MenuController{}, "POST:CreateMenu")
	beego.Router("/menu/:menuId", &controllers.MenuController{}, "PUT:UpdateMenu")
	beego.Router("/menu/:menuId", &controllers.MenuController{}, "GET:GetMenu")
	beego.Router("/menu/:menuId", &controllers.MenuController{}, "DELETE:DeleteMenu")
	beego.Router("/menu/", &controllers.MenuController{}, "GET:ListMenu")
}