log_router.go 627 字节
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("/logs/", &controllers.LogController{}, "Post:CreateLog")
	web.Router("/logs/:logId", &controllers.LogController{}, "Put:UpdateLog")
	web.Router("/logs/:logId", &controllers.LogController{}, "Get:GetLog")
	web.Router("/logs/:logId", &controllers.LogController{}, "Delete:RemoveLog")
	web.Router("/logs/", &controllers.LogController{}, "Get:ListLog")
	web.Router("/logs/search", &controllers.LogController{}, "Post:SearchLog")
}