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