org_router.go 713 字节
package routers

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

func init() {
	web.Router("/org/", &controllers.OrgController{}, "Post:CreateOrg")
	web.Router("/org/:orgId", &controllers.OrgController{}, "Put:UpdateOrg")
	web.Router("/org/:orgId", &controllers.OrgController{}, "Get:GetOrg")
	web.Router("/org/:orgId", &controllers.OrgController{}, "Delete:RemoveOrg")
	web.Router("/org/search", &controllers.OrgController{}, "Post:ListOrg")
	web.Router("/org/:orgId/sub-department", &controllers.OrgController{}, "Get:GetOrgSubDepartment")
	web.Router("/org/enable", &controllers.OrgController{}, "Post:EnableOrg")
}