rpc start

This commit is contained in:
withchao
2023-02-13 17:44:22 +08:00
parent f3d43f8578
commit 048d4b83e1
5 changed files with 207 additions and 113 deletions
+6
View File
@@ -13,6 +13,12 @@ import (
"time"
)
func NewMongo() *Mongo {
mgo := &Mongo{}
mgo.InitMongo()
return mgo
}
type Mongo struct {
db *mongo.Client
}