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