dictionary_router.go 771 字节
package routers

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

func init() {
	web.Router("/dictionarys/", &controllers.DictionaryController{}, "Post:CreateDictionary")
	web.Router("/dictionarys/:dictionaryId", &controllers.DictionaryController{}, "Put:UpdateDictionary")
	web.Router("/dictionarys/:dictionaryId", &controllers.DictionaryController{}, "Get:GetDictionary")
	web.Router("/dictionarys/search", &controllers.DictionaryController{}, "Post:ListDictionary")
	web.Router("/dictionarys/dictionary-code", &controllers.DictionaryController{}, "Post:GetDictionaryByCode")
	web.Router("/dictionarys/remove", &controllers.DictionaryController{}, "Post:RemoveDictionary")
}