mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 13:02:14 +08:00
fix typo
This commit is contained in:
parent
704d690ac0
commit
fc968d611d
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user