From 83e714b9de2675db9d544308c00cb4afb4b00f8f Mon Sep 17 00:00:00 2001 From: tiglog Date: Sun, 13 Aug 2023 02:19:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8A=8A=E5=8F=AF=E8=83=BD=E7=94=A8?= =?UTF-8?q?=E5=88=B0=E7=9A=84=E6=94=BE=E5=9C=A8=E8=87=AA=E5=B7=B1=E5=B0=81?= =?UTF-8?q?=E8=A3=85=E7=9A=84=E5=8C=85=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gdb/mgodb/bson.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/mgodb/bson.go b/gdb/mgodb/bson.go index ec8ea50..8ee130d 100644 --- a/gdb/mgodb/bson.go +++ b/gdb/mgodb/bson.go @@ -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