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