14 lines
213 B
Go
14 lines
213 B
Go
|
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
|
||
|
}
|