package router import ( "91porn-server/app/api/commentctrl" "91porn-server/app/middleware/ipblock" "91porn-server/app/middleware/limitHandler" "91porn-server/common/constant" "github.com/didip/tollbooth_gin" "github.com/gin-gonic/gin" ) func commentRouter(router *gin.RouterGroup) { group := router.Group("/comment") { group.GET("/list", commentctrl.List) group.GET("/info", commentctrl.Info) group.POST("/send", ipblock.IPBlock(constant.BlockComment), limitHandler.FilterByIP(tollbooth_gin.LimitHandler(Lmt)), commentctrl.Send) //非帖子内容评论,目前有愿望工单 group.POST("/sendV2", ipblock.IPBlock(constant.BlockComment), limitHandler.FilterByIP(tollbooth_gin.LimitHandler(Lmt)), commentctrl.NoVidSend) group.GET("/reply/list", commentctrl.ReplyList) } }