query_set_router.go 2.9 KB
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/query-sets/", &controllers.QuerySetController{}, "Post:CreateQuerySet")
	web.Router("/data/query-sets/:querySetId", &controllers.QuerySetController{}, "Put:UpdateQuerySet")
	web.Router("/data/query-sets/:querySetId", &controllers.QuerySetController{}, "Get:GetQuerySet")
	web.Router("/data/query-sets/:querySetId", &controllers.QuerySetController{}, "Delete:RemoveQuerySet")
	web.Router("/data/query-sets/", &controllers.QuerySetController{}, "Get:ListQuerySet")

	web.Router("/data/query-sets/change-status", &controllers.QuerySetController{}, "Post:ChangeStatus")
	web.Router("/data/query-sets/copy", &controllers.QuerySetController{}, "Post:Copy")
	web.Router("/data/query-sets/dependency-graph", &controllers.QuerySetController{}, "Post:DependencyGraph")
	web.Router("/data/query-sets/move", &controllers.QuerySetController{}, "Post:Move")
	web.Router("/data/query-sets/rename", &controllers.QuerySetController{}, "Post:Rename")
	web.Router("/data/query-sets/search", &controllers.QuerySetController{}, "Post:SearchQuerySet")
	web.Router("/data/query-sets/preview-prepare", &controllers.QuerySetController{}, "Post:PreviewPrepare")
	web.Router("/data/query-sets/refresh", &controllers.QuerySetController{}, "Post:RefreshQuerySet")

	web.Router("/data/query-sets/formula/", &controllers.QuerySetController{}, "Post:CreateQuerySet")
	web.Router("/data/query-sets/formula/:querySetId", &controllers.QuerySetController{}, "Put:UpdateQuerySet")
	web.Router("/data/query-sets/formula/:querySetId", &controllers.QuerySetController{}, "Get:GetQuerySet")
	web.Router("/data/query-sets/formula/:querySetId", &controllers.QuerySetController{}, "Delete:RemoveQuerySet")

	web.Router("/data/query-sets/formula/change-status", &controllers.QuerySetController{}, "Post:ChangeStatus")
	web.Router("/data/query-sets/formula/copy", &controllers.QuerySetController{}, "Post:Copy")
	web.Router("/data/query-sets/formula/move", &controllers.QuerySetController{}, "Post:Move")
	web.Router("/data/query-sets/formula/rename", &controllers.QuerySetController{}, "Post:Rename")
	web.Router("/data/query-sets/formula/search", &controllers.QuerySetController{}, "Post:SearchQuerySet")
	web.Router("/data/query-sets/formula/calculate-table-preview-prepare", &controllers.QuerySetController{}, "Post:PreviewPrepare")
	web.Router("/data/query-sets/formula/calculate-set-preview", &controllers.QuerySetController{}, "Post:CalculateSetPreview")
	web.Router("/data/query-sets/formula/calculate-set-export", &controllers.QuerySetController{}, "Post:CalculateSetExport")

	web.Router("/data/query-sets/formula/calculate-item-preview", &controllers.QuerySetController{}, "Post:CalculateItemPreview")
	web.Router("/data/query-sets/formula/calculate-item-export", &controllers.QuerySetController{}, "Post:CalculateItemExport")
}