相关文章推荐
小百科
›
go gin框架:PostFormArray接收数组类请求参数_学亮编程手记的技术博客_
旅途中的茄子
2 年前
r
:=
gin
.
Default
(
)
r
.
POST
(
"postForm"
,
postForm
)
r
.
POST
(
"postFormArray"
,
postFormArray
)
r
.
Run
(
)
func
postFormArray
(
c
*
gin
.
Context
)
{
c
.
JSON
(
http
.
StatusOK
,
gin
.
H
{
"ids"
:
c
.
PostFormArray
(
"id"
)
,
推荐文章