github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/gorm/gormDBOrder/replacement.go (about) 1 package gormDBOrder 2 3 import ( 4 "github.com/HXSecurity/DongTai-agent-go/model/request" 5 "gorm.io/gorm" 6 ) 7 8 func Order(db *gorm.DB, value interface{}) (tx *gorm.DB) { 9 10 s := OrderT(db, value) 11 request.FmtHookPool(request.PoolReq{ 12 Args: request.Collect(value), 13 Reqs: request.Collect(tx), 14 Source: false, 15 OriginClassName: "gorm.(*DB)", 16 MethodName: "Order", 17 ClassName: "gorm", 18 }) 19 return s 20 } 21 22 func OrderT(db *gorm.DB, value interface{}) (tx *gorm.DB) { 23 return 24 }