Files
SamWaf/router/waf_anticc.go
2024-11-11 15:08:40 +08:00

22 lines
684 B
Go

package router
import (
"SamWaf/api"
"github.com/gin-gonic/gin"
)
type AntiCCRouter struct {
}
func (receiver *AntiCCRouter) InitAntiCCRouter(group *gin.RouterGroup) {
api := api.APIGroupAPP.WafAntiCCApi
router := group.Group("")
router.POST("/samwaf/wafhost/anticc/list", api.GetListApi)
router.GET("/samwaf/wafhost/anticc/detail", api.GetDetailApi)
router.POST("/samwaf/wafhost/anticc/add", api.AddApi)
router.GET("/samwaf/wafhost/anticc/del", api.DelAntiCCApi)
router.POST("/samwaf/wafhost/anticc/edit", api.ModifyAntiCCApi)
router.GET("/samwaf/wafhost/anticc/baniplist", api.GetBanIpListApi)
router.POST("/samwaf/wafhost/anticc/removebanip", api.RemoveCCBanIPApi)
}