workshop_router.go 634 字节
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("/workshops/", &controllers.WorkshopController{}, "Post:CreateWorkshop")
	web.Router("/workshops/:workshopId", &controllers.WorkshopController{}, "Put:UpdateWorkshop")
	web.Router("/workshops/:workshopId", &controllers.WorkshopController{}, "Get:GetWorkshop")
	web.Router("/workshops/:workshopId", &controllers.WorkshopController{}, "Delete:RemoveWorkshop")
	web.Router("/workshops/", &controllers.WorkshopController{}, "Get:ListWorkshop")
}