增加Mongo基础字段结构体

This commit is contained in:
2026-03-12 08:50:28 +08:00
parent 302336a769
commit 64b107d48b
+1
View File
@@ -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"`