product_job_router.go
773 字节
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-jobs/", &controllers.ProductJobController{}, "Post:CreateProductJob")
web.Router("/product-jobs/:productJobId", &controllers.ProductJobController{}, "Put:UpdateProductJob")
web.Router("/product-jobs/:productJobId", &controllers.ProductJobController{}, "Get:GetProductJob")
web.Router("/product-jobs/:productJobId", &controllers.ProductJobController{}, "Delete:RemoveProductJob")
web.Router("/product-jobs/", &controllers.ProductJobController{}, "Get:ListProductJob")
web.Router("/product-jobs/search", &controllers.ProductJobController{}, "Post:SearchProductJob")
}