github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/gin/ginContextShouldBindBodyWith/replacement.go (about) 1 package ginContextShouldBindBodyWith 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 ShouldBindBodyWith(c *gin.Context, obj interface{}, b binding.BindingBody) error { 10 err := ShouldBindBodyWithT(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: "ShouldBindBodyWith", 17 ClassName: "gin.(*Context)", 18 }) 19 return err 20 } 21 22 func ShouldBindBodyWithT(c *gin.Context, obj interface{}, b binding.BindingBody) error { 23 return nil 24 }