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

     1  package ginContextGetQueryArray
     2  
     3  import (
     4  	"github.com/HXSecurity/DongTai-agent-go/model/request"
     5  	"github.com/gin-gonic/gin"
     6  )
     7  
     8  func GetQueryArray(c *gin.Context, key string) ([]string, bool) {
     9  	reArray, flag := GetQueryArrayT(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:      "GetQueryArray",
    16  		ClassName:       "gin.(*Context)",
    17  	})
    18  	return reArray, flag
    19  }
    20  
    21  func GetQueryArrayT(c *gin.Context, key string) ([]string, bool) {
    22  	return []string{}, false
    23  }