Closed nullsimon closed 1 year ago
GetArticles 在router里面定义的是Get方法
apiv1.GET("/articles", v1.GetArticles)
所以应该使用c.Query("state"), 而不是 c.PostForm("state")
GetArticles 在router里面定义的是Get方法
apiv1.GET("/articles", v1.GetArticles)
所以应该使用c.Query("state"), 而不是 c.PostForm("state")