servicemongo
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package mongo
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
)
|
||||
|
||||
type DatabaseService struct {
|
||||
DBMongo *mongo.Database
|
||||
}
|
||||
|
||||
func NewDatabaseServiceMongo(db *mongo.Database) *DatabaseService {
|
||||
return &DatabaseService{DBMongo: db}
|
||||
}
|
||||
Reference in New Issue
Block a user