init project
This commit is contained in:
13
pkg/database/mongo/database.go
Normal file
13
pkg/database/mongo/database.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package mongo
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
)
|
||||
|
||||
type DatabaseService struct {
|
||||
DB *mongo.Database
|
||||
}
|
||||
|
||||
func NewDatabaseService(db *mongo.Database) *DatabaseService {
|
||||
return &DatabaseService{DB: db}
|
||||
}
|
||||
Reference in New Issue
Block a user