summary_evaluation_router.go 942 字节
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("/executor/cycle/list", (*controllers.SummaryEvaluationController).GetExecutorCycleList),
		web.NSCtrlPost("/target_user/cycle/list", (*controllers.SummaryEvaluationController).GetTargetUserCycleList),
		web.NSCtrlPost("/cycle/menu", (*controllers.SummaryEvaluationController).GetMenu),
		web.NSCtrlPost("/self", (*controllers.SummaryEvaluationController).GetEvaluationSelf),
		web.NSCtrlPost("/self/edit", (*controllers.SummaryEvaluationController).EditEvaluationSelf),
	)
	web.AddNamespace(summaryNS)
}