product_section_router.go 726 字节
package routers

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

func init() {
	web.Router("/product-sections/", &controllers.ProductSectionController{}, "Post:CreateProductSection")
	web.Router("/product-sections/:sectionId", &controllers.ProductSectionController{}, "Put:UpdateProductSection")
	web.Router("/product-sections/:sectionId", &controllers.ProductSectionController{}, "Get:GetProductSection")
	web.Router("/product-sections/:sectionId", &controllers.ProductSectionController{}, "Delete:RemoveProductSection")
	web.Router("/product-sections/", &controllers.ProductSectionController{}, "Get:ListProductSection")
}