ess-etl-go/pkg/adapter/repository/mongodb/employee_wi/repository.go

14 lines
213 B
Go
Raw Normal View History

package employee_wi
import (
"go.mongodb.org/mongo-driver/mongo"
)
func NewRepo(collection *mongo.Collection) *Repo {
return &Repo{collection: collection}
}
type Repo struct {
collection *mongo.Collection
}