github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/gin/ginContextShouldBindWith/replacement.go (about) 1 package ginContextShouldBindWith 2 3 import ( 4 "github.com/HXSecurity/DongTai-agent-go/model/request" 5 "github.com/gin-gonic/gin" 6 "github.com/gin-gonic/gin/binding" 7 ) 8 9 func ShouldBindWith(c *gin.Context, obj interface{}, b binding.Binding) error { 10 err := ShouldBindWithT(c, obj, b) 11 request.FmtHookPool(request.PoolReq{ 12 Args: request.Collect(), 13 Reqs: request.Collect(obj), 14 Source: true, 15 OriginClassName: "gin.(*Context)", 16 MethodName: "ShouldBindWith", 17 ClassName: "gin.(*Context)", 18 }) 19 return err 20 } 21 22 func ShouldBindWithT(c *gin.Context, obj interface{}, b binding.Binding) error { 23 return nil 24 }