summary_evaluation_router.go 813 字节
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"github.com/linmadan/egglib-go/web/beego/filters"
	"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/controllers"
	"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/middlewares"
)

func init() {
	summaryNS := web.NewNamespace("/v1/summary-evaluation",
		web.NSBefore(filters.AllowCors(), middlewares.CheckFontToken()),
		web.NSCtrlPost("/cycle/list", (*controllers.SummaryEvaluationController).GetCycleList),
		web.NSCtrlPost("/cycle/menu", (*controllers.SummaryEvaluationController).GetMenu),
		web.NSCtrlPost("/self", (*controllers.SummaryEvaluationController).GetEvaluationSelf),
		web.NSCtrlPost("/self/edit", (*controllers.SummaryEvaluationController).EditEvaluationSelf),
	)
	web.AddNamespace(summaryNS)
}