product_line_router.go 672 字节
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-lines/", &controllers.ProductLineController{}, "Post:CreateProductLine")
	web.Router("/product-lines/:lineId", &controllers.ProductLineController{}, "Put:UpdateProductLine")
	web.Router("/product-lines/:lineId", &controllers.ProductLineController{}, "Get:GetProductLine")
	web.Router("/product-lines/:lineId", &controllers.ProductLineController{}, "Delete:RemoveProductLine")
	web.Router("/product-lines/", &controllers.ProductLineController{}, "Get:ListProductLine")
}