github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/gin/ginContextGetPostFormArray/replacement.go (about)

     1  package ginContextGetPostFormArray
     2  
     3  import (
     4  	"github.com/HXSecurity/DongTai-agent-go/model/request"
     5  	"github.com/gin-gonic/gin"
     6  )
     7  
     8  func GetPostFormArray(c *gin.Context, key string) ([]string, bool) {
     9  	reArray, flag := GetPostFormArrayT(c, key)
    10  	request.FmtHookPool(request.PoolReq{
    11  		Args:            request.Collect(key),
    12  		Reqs:            request.Collect(reArray),
    13  		Source:          true,
    14  		OriginClassName: "gin.(*Context)",
    15  		MethodName:      "GetPostFormArray",
    16  		ClassName:       "gin.(*Context)",
    17  	})
    18  	return reArray, flag
    19  }
    20  
    21  func GetPostFormArrayT(c *gin.Context, key string) ([]string, bool) {
    22  	return []string{}, false
    23  }