From 64b107d48b36bebbaf0ae0ce19caaa60bc418612 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:21:53 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/do/base_do.go b/do/base_do.go index 4d7f45e..e80b00e 100644 --- a/do/base_do.go +++ b/do/base_do.go @@ -6,6 +6,7 @@ import ( ) type MongoBaseDO struct { + Id bson.ObjectID `bson:"_id,omitempty" json:"id"` // MongoDB 默认 ID Creator bson.ObjectID `bson:"creator" json:"creator"` CreatedAt time.Time `bson:"createdAt" json:"createdAt"` Updater bson.ObjectID `bson:"updater" json:"updater"`