From 302336a769d2f3c25ca4a2ef14806619e5354d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Fri, 28 Nov 2025 15:19:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Mongo=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=BB=93=E6=9E=84=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- do/base_do.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 do/base_do.go diff --git a/do/base_do.go b/do/base_do.go new file mode 100644 index 0000000..4d7f45e --- /dev/null +++ b/do/base_do.go @@ -0,0 +1,14 @@ +package do + +import ( + "go.mongodb.org/mongo-driver/v2/bson" + "time" +) + +type MongoBaseDO struct { + Creator bson.ObjectID `bson:"creator" json:"creator"` + CreatedAt time.Time `bson:"createdAt" json:"createdAt"` + Updater bson.ObjectID `bson:"updater" json:"updater"` + UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"` + TenantId bson.ObjectID `bson:"tenantId" json:"tenantId"` +}