feat: 把可能用到的放在自己封装的包里
This commit is contained in:
parent
23369c49ad
commit
83e714b9de
@ -7,7 +7,10 @@
|
|||||||
|
|
||||||
package mgodb
|
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.
|
// M is an unordered representation of a BSON document.
|
||||||
// bson.M{"foo": "bar", "hello": "world", "pi": 3.14159}
|
// 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.
|
// An A is an ordered representation of a BSON array.
|
||||||
// bson.A{"bar", "world", 3.14159, bson.D{{"qux", 12345}}}
|
// bson.A{"bar", "world", 3.14159, bson.D{{"qux", 12345}}}
|
||||||
type A = bson.A
|
type A = bson.A
|
||||||
|
|
||||||
|
type ObjectId = primitive.ObjectID
|
||||||
|
Loading…
Reference in New Issue
Block a user