package router import ( "hkdj-web-server/app/api/commentapi" "github.com/gin-gonic/gin" ) func commentRouter(r *gin.Engine) { r.POST("/comment/send/", commentapi.SendComment) group := r.Group("/api/app/comment") { group.POST("/send", commentapi.SendComment) group.POST("/send/", commentapi.SendComment) group.GET("/list", commentapi.List) group.POST("/like/set", commentapi.SetLike) } }