statistics_router.go 416 字节
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/port/beego/controllers"
)

func init() {
	web.Router("/statistics", &controllers.StatisticsController{}, "Post:CommonStatisticsService")
	c := &controllers.StatisticsController{}
	web.Post("/statistics/hour-productive", c.CommonStatisticsHandler("HourProductiveStatistics"))
}