feat: 把可能用到的放在自己封装的包里

This commit is contained in:
tiglog 2023-08-13 02:19:19 +08:00
parent 23369c49ad
commit 83e714b9de

View File

@ -7,7 +7,10 @@
package mgodb
import "go.mongodb.org/mongo-driver/bson"
import (
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
)
// M is an unordered representation of a BSON document.
// bson.M{"foo": "bar", "hello": "world", "pi": 3.14159}
@ -20,3 +23,5 @@ type D = bson.D
// An A is an ordered representation of a BSON array.
// bson.A{"bar", "world", 3.14159, bson.D{{"qux", 12345}}}
type A = bson.A
type ObjectId = primitive.ObjectID