company_router.go 815 字节
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/mmm-go-pp/partner01-gateway/pkg/port/beego/controllers"
)

func init() {
	web.Router("/companies/", &controllers.CompanyController{}, "Post:CreateCompany")
	web.Router("/companies/:companyId", &controllers.CompanyController{}, "Put:UpdateCompany")
	web.Router("/companies/:companyId", &controllers.CompanyController{}, "Get:GetCompany")
	web.Router("/companies/:companyId", &controllers.CompanyController{}, "Delete:RemoveCompany")
	web.Router("/companies/", &controllers.CompanyController{}, "Get:ListCompany")
	web.Router("/companies/convertCompanyStatus", &controllers.CompanyController{}, "Post:ConvertCompanyStatus")
	web.Router("/companies/setCompanyAdmin", &controllers.CompanyController{}, "Post:SetCompanyAdmin")
}