github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/gorm/gormDBPluck/replacement.go (about)

     1  package gormDBPluck
     2  
     3  import (
     4  	"github.com/HXSecurity/DongTai-agent-go/model/request"
     5  	"gorm.io/gorm"
     6  )
     7  
     8  func Pluck(db *gorm.DB, column string, dest interface{}) (tx *gorm.DB) {
     9  	s := PluckT(db, column, dest)
    10  	request.FmtHookPool(request.PoolReq{
    11  		Args:            request.Collect(column, dest),
    12  		Reqs:            request.Collect(tx),
    13  		Source:          false,
    14  		OriginClassName: "gorm.(*DB)",
    15  		MethodName:      "Pluck",
    16  		ClassName:       "gorm",
    17  	})
    18  	return s
    19  }
    20  
    21  func PluckT(db *gorm.DB, column string, dest interface{}) (tx *gorm.DB) {
    22  	return
    23  }