dictionary_router.go
558 字节
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/", &controllers.DictionaryController{}, "Get:ListDictionary")
}