mapping_rule_router.go 938 字节
package routers

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

func init() {
	web.Router("/data/mapping-rules/", &controllers.MappingRuleController{}, "Post:CreateMappingRule")
	web.Router("/data/mapping-rules/:mappingRuleId", &controllers.MappingRuleController{}, "Put:UpdateMappingRule")
	web.Router("/data/mapping-rules/:mappingRuleId", &controllers.MappingRuleController{}, "Get:GetMappingRule")
	web.Router("/data/mapping-rules/:mappingRuleId", &controllers.MappingRuleController{}, "Delete:RemoveMappingRule")
	web.Router("/data/mapping-rules/", &controllers.MappingRuleController{}, "Get:ListMappingRule")
	web.Router("/data/mapping-rules/search", &controllers.MappingRuleController{}, "Post:SearchMappingRule")
	web.Router("/data/mapping-rules/prepare", &controllers.MappingRuleController{}, "Get:PrepareMappingRule")
}