mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
24 lines
712 B
Go
24 lines
712 B
Go
package router
|
|
|
|
import (
|
|
"SamWaf/api"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type StatRouter struct {
|
|
}
|
|
|
|
func (receiver *StatRouter) InitStatRouter(group *gin.RouterGroup) {
|
|
statApi := api.APIGroupAPP.WafStatApi
|
|
router := group.Group("")
|
|
//首页数据
|
|
router.GET("/samwaf/wafstatsumday", statApi.StatHomeSumDayApi)
|
|
router.GET("/samwaf/wafstatsumdayrange", statApi.StatHomeSumDayRangeApi)
|
|
router.GET("/samwaf/wafstatsumdaytopiprange", statApi.StatHomeSumDayTopIPRangeApi)
|
|
router.GET("/samwaf/statsysinfo", statApi.StatSysinfoApi)
|
|
router.GET("/samwaf/statrumtimesysinfo", statApi.StatRumtimeSysinfoApi)
|
|
|
|
//数据分析
|
|
router.GET("/samwaf/wafanalysisdaycountryrange", statApi.StatAnalysisDayCountryRangeApi)
|
|
}
|