This commit is contained in:
Orisano 2015-09-13 14:36:13 +09:00
parent 704d690ac0
commit fc968d611d

View File

@ -191,7 +191,7 @@ func main() {
router.POST("/post", func(c *gin.Context) { router.POST("/post", func(c *gin.Context) {
id := c.Query("id") id := c.Query("id")
page := c.DefaultQuery("id", "0") page := c.DefaultQuery("page", "0")
name := c.PostForm("name") name := c.PostForm("name")
message := c.PostForm("message") message := c.PostForm("message")
@ -202,7 +202,7 @@ func main() {
``` ```
``` ```
id: 1234; page: 0; name: manu; message: this_is_great id: 1234; page: 1; name: manu; message: this_is_great
``` ```