product_plan_router.go 1.4 KB
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-plans/", &controllers.ProductPlanController{}, "Post:CreateProductPlan")
	web.Router("/product-plans/:productPlanId", &controllers.ProductPlanController{}, "Put:UpdateProductPlan")
	web.Router("/product-plans/:productPlanId", &controllers.ProductPlanController{}, "Get:GetProductPlan")
	web.Router("/product-plans/:productPlanId", &controllers.ProductPlanController{}, "Delete:RemoveProductPlan")
	web.Router("/product-plans/", &controllers.ProductPlanController{}, "Get:ListProductPlan")
	web.Router("/product-plans/receive-material", &controllers.ProductPlanController{}, "Post:ReceiveMaterial")
	web.Router("/product-plans/return-material", &controllers.ProductPlanController{}, "Post:ReturnMaterial")
	web.Router("/product-plans/set-online", &controllers.ProductPlanController{}, "Post:SetOnline")
	web.Router("/product-plans/set-offline", &controllers.ProductPlanController{}, "Post:SetOffline")
	web.Router("/product-plans/exchange", &controllers.ProductPlanController{}, "Post:Switch")
	web.Router("/product-plans/submit-product-record", &controllers.ProductPlanController{}, "Post:SubmitProductRecord")
	web.Router("/product-plans/search", &controllers.ProductPlanController{}, "Post:SearchProductPlan")
}